Они одинаковы.Посмотрите на EXPLAIN
:
EXPLAIN (COSTS OFF)
SELECT * FROM dir WHERE NOT (path = ANY ('{dsa,fds,gfd}'));
QUERY PLAN
---------------------------------------------------
Seq Scan on dir
Filter: (path <> ALL ('{dsa,fds,gfd}'::text[]))
(2 rows)