Re: Set-Returning functions in a select list

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: J Lumby <johnlumby(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Set-Returning functions in a select list
Date: 2021-07-24 16:03:42
Message-ID: 1163940.1627142622@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-general

J Lumby <johnlumby(at)hotmail(dot)com> <DM5PR06MB3082AEC288F546F7AF5393E3A3E69(at)DM5PR06MB3082(dot)namprd06(dot)prod(dot)outlook(dot)com> writes:
> I am unclear about the rules which postgresql uses in building a result
> set when the select list ( see note ) contains several different
> Set-Returning functions,  possibly with sets of different sizes.

The docs you want exist, but they're a bit buried ... see

https://www.postgresql.org/docs/current/xfunc-sql.html#XFUNC-SQL-FUNCTIONS-RETURNING-SET

In particular, the NOTE at the bottom of that section explains that
the behavior changed in v10.

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Michael Paquier 2021-07-26 04:04:00 Re: [Doc] Tiny fix for regression tests example
Previous Message J Lumby 2021-07-24 15:52:23 Set-Returning functions in a select list

Browse pgsql-general by date

  From Date Subject
Next Message Indrajit Datar 2021-07-25 03:10:16 regarding sql password auth
Previous Message J Lumby 2021-07-24 15:52:23 Set-Returning functions in a select list