Phil Glatz <phil(at)glatz(dot)com> writes:
> present in two rows in map_flags, so I created a subquery to pull the
> records from map_flags, using INTERSECT. This query runs by itself ok, but
> when I use it as a subquery, I get parse error at or near "intersect".
You need a newer PG release, evidently.
regards, tom lane