Search Postgresql Archives

Re: query syntax to combine 2 set returning functions ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 4, 2013 at 1:24 AM, Marc Mamin <M.Mamin@xxxxxxxxxxxx> wrote:
>>  I can't find the syntax to get the results in multiple columns instaed of a singel 'record' column:
>>  select  get_table_depends('cicpg_logs', t) FROM get_modeltablelist('efeeds') t
>
> I got it:
>
> select  (get_table_depends('cicpg_logs', t)).* FROM get_modeltablelist('efeeds') t
>         ^                                  ^

This is another query that get's simplified through 9.3 LATERAL.  As
you have written the query, get_table_depends will get executed once
for each column that get_table_depends returns.

merlin


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux