Re: query syntax to combine 2 set returning functions ?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Marc Mamin <M(dot)Mamin(at)intershop(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: query syntax to combine 2 set returning functions ?
Date: 2013-03-04 14:11:01
Message-ID: CAHyXU0xp-u7-s+tZcFtwWcoGVwCr90k07jEKzrMNf5x_VwopvA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Mar 4, 2013 at 1:24 AM, Marc Mamin <M(dot)Mamin(at)intershop(dot)de> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2013-03-04 14:23:32 Re: out of memory issue
Previous Message Vincent Veyron 2013-03-04 13:21:20 Re: Scalable cluster