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

Re: revised sample SRF C function; proposed SRF API

From: Joe Conway <mail(at)joeconway(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: revised sample SRF C function; proposed SRF API
Date: 2002-05-27 02:26:36
Message-ID: 3CF1995C.3020501@joeconway.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Joe Conway wrote:
> Here is a revised patch for a sample C function returning setof 
> composite. (Same comments as last time -- It is a clone of SHOW ALL as 
> an SRF. For the moment, the function is implemented as contrib/showguc, 
> although a few minor changes to guc.c and guc.h were required to support 
> it.)
> 
> This version includes pieces that may be appropriate for fmgr.c and 
> fmgr.h, to hide some of the ugliness and facilitate writing C functions 
> which return setof composite. The API is something like this:
> 

Sorry -- I was a bit too quick with the last patch :-(. It generates a 
"Cache reference leak" warning. This one is better.

Joe



Attachment: showguc.2002.05.26.2.patch
Description: text/plain (24.1 KB)

In response to

pgsql-hackers by date

Next:From: Teodor SigaevDate: 2002-05-27 08:35:26
Subject: Re: strange update problem with 7.2.1
Previous:From: Joe ConwayDate: 2002-05-27 01:30:32
Subject: revised sample SRF C function; proposed SRF API

pgsql-patches by date

Next:From: Joe ConwayDate: 2002-05-27 05:05:49
Subject: small dblink patch
Previous:From: Joe ConwayDate: 2002-05-27 01:30:32
Subject: revised sample SRF C function; proposed SRF API

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