Re: Function C and INOUT parameters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ben Ali Rachid <souliman239(at)yahoo(dot)fr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Function C and INOUT parameters
Date: 2009-03-24 18:11:07
Message-ID: 17016.1237918267@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-www

Ben Ali Rachid <souliman239(at)yahoo(dot)fr> writes:
> I posted my problem (on pgsql-interfaces list) about the INOUT parameters on PostgreSQL 8.3.6 (Win32), but without success. I re-post my question here, while hoping to have more success.

You apparently have no understanding at all of how parameters are passed
to and from C-language functions in Postgres :-(. Start here:

http://www.postgresql.org/docs/8.3/static/xfunc-c.html

and note that any situation involving multiple OUT parameters is handled
as returning an anonymous composite type. There are a number of
useful examples in the contrib modules.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2009-03-24 18:11:17 Re: Function C and INOUT parameters
Previous Message Ben Ali Rachid 2009-03-24 16:54:30 Function C and INOUT parameters

Browse pgsql-www by date

  From Date Subject
Next Message Greg Stark 2009-03-24 18:11:17 Re: Function C and INOUT parameters
Previous Message Ben Ali Rachid 2009-03-24 16:54:30 Function C and INOUT parameters