Dent John wrote: > Yes. That’s at least true if unnest(x) is used in the FROM. If it’s used in > the SELECT, actually it can get the performance benefit right away
At a quick glance, I don't see it called in the select-list in any of the regression tests. When trying it, it appears to crash (segfault): postgres=# begin; BEGIN postgres=# declare c cursor for select oid::int as i, relname::text as r from pg_class; DECLARE CURSOR postgres=# select unnest('c'::refcursor); server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. The build is configured with: ./configure --enable-debug --with-icu --with-perl --enable-depend Best regards, -- Daniel Vérité PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite