Re: calling functions in select

From: Jakub Ouhrabka <jouh8664(at)ss1000(dot)ms(dot)mff(dot)cuni(dot)cz>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: calling functions in select
Date: 2002-04-24 09:14:36
Message-ID: Pine.LNX.4.33.0204241111340.22603-100000@u-pl1.ms.mff.cuni.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> 1)
> FOR lr_rec IN SELECT func(table.x, ...) FROM table,... WHERE ... LOOP
> END LOOP;
>
> 2)
> FOR lr_rec IN SELECT * FROM table,... WHERE ... LOOP
> li_x := func(lr_rec.x, ...);
> END LOOP;

i'll answer myself, it depends on whether func is iscachable or not,
right?

kuba

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alejandro Fernandez 2002-04-24 09:45:11 Re: Connections per second?
Previous Message ARP 2002-04-24 09:06:09 Bug or syntax error in my update query with a FROM statement ?