subquery returnig more than one field

From: Jan Varga <varga(at)utcru(dot)sk>
To: pgsql-sql(at)postgresql(dot)org
Subject: subquery returnig more than one field
Date: 2000-04-07 12:54:32
Message-ID: Pine.LNX.4.10.10004071423570.3077-100000@frru.utcru.sk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Hi,

now I'm using query:

select id, c1(my_func(id)), c2(my_func(id)) from my_table

my_table (
id int
)

my_table2 (
c1 int,
c2 int
)

my_function returns my_table2

but this quite inefficient because my_func is called twise for each row
Are there any possibilities to enhance this ?

Please reply to my e-mail too, because I'm not on the list
and mail archives are not functional at the moment

Thanks

Jan

Browse pgsql-sql by date

  From Date Subject
Next Message Bryan White 2000-04-07 14:04:59 Re: duplicates
Previous Message Gerhard Dieringer 2000-04-07 12:54:02 Antw: duplicates