Re: How to call table returning function with other table

From: Svenne Krap <svenne(at)krap(dot)dk>
To: Markus Bertheau <mbertheau(dot)pg(at)googlemail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to call table returning function with other table
Date: 2006-03-19 13:39:17
Message-ID: 441D5F05.4060107@krap.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Perfect. Thanks.

Svenne

Markus Bertheau wrote:
> 2006/3/19, Svenne Krap <svenne(at)krap(dot)dk>:
>
>
>> So it is something like "select xxx(id) from othertable where otherwhere
>> = 't'" except that it mangles the columns into an array. I have tried to
>> move the function-call into the fromlist (as it is usually done) but I
>> seem unsuccessful in getting the ID's into it.
>>
>
> You have to use something like SELECT (xxx(id)).* FROM othertable
> WHERE otherwhere = 't', I believe.
>
> Markus Bertheau
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bath, David 2006-03-19 23:37:07 Lead and tail quotes with \pset fieldsep
Previous Message Markus Bertheau 2006-03-19 13:32:43 Re: How to call table returning function with other table