# select 1 = any ('{1}'::bigint[]);
?column?
----------
t
(1 row)
# select parent_cats from cats where id = 2;
parent_cats
-------------
{1}
(1 row)
# select * from cats where id = any (select parent_cats from cats where id = 2);
ERROR: operator does not exist: bigint = bigint[]
LINE 1: select * from cats where id = any (select parent_cats from c...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
#
Почему не работает последнее? Как правильно написать?