Skip site navigation (1) Skip section navigation (2)

Re: SRF in SFRM_ValuePerCall mode

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "dv (at) nabble" <dvnabble(at)gmail(dot)com>
Cc: "pgsql-hackers list" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SRF in SFRM_ValuePerCall mode
Date: 2008-04-28 10:56:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
dv @ nabble wrote:
> I am working on implementation of custom "C" SRF for our team. The SRF uses
> SFRM_ValuePerCall mode. I know that sometimes even in SFRM_ValuePerCall 
> mode
> all the rows returned from SRF are "materialized" (for performing JOINs, 
> for
> example).

Yep, they are unfortunately always materialized. Back when set returning 
functions were implemented, the original patch did actually support true 
"value per call" mode, where the whole result set was not materialized. 
However, it was dropped because of some issues I can't remember off the 
top of my head. The value-per-call API was committed, so that it was 
already in place when someone gets around to implement the backend 
support for it.

However, no-one has bothered to do that to this date. Hannu Krosing 
showed some interest in it recently, though: I 
would love to see it happen.

   Heikki Linnakangas

In response to


pgsql-hackers by date

Next:From: Tom DunstanDate: 2008-04-28 11:49:32
Subject: Re: Re: [COMMITTERS] pgsql: Update: < * Allow adding enumerated values to an existing
Previous:From: dv @ nabbleDate: 2008-04-28 09:49:57
Subject: SRF in SFRM_ValuePerCall mode

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group