David Rowley <dgrowle...@gmail.com> writes: > I think we should probably include the logic to test for set returning > functions into query_is_distinct_for.
It strikes me that there's only a problem if the SRF is in a tlist entry that is not one of the DISTINCT or GROUP BY columns, respectively. It may not be worth the extra complexity to figure that out, though. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers