Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0F755640385 for ; Tue, 24 Mar 2009 15:15:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 79302-01-9 for ; Tue, 24 Mar 2009 15:14:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 947BF6402E6 for ; Tue, 24 Mar 2009 15:11:09 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n2OIB7XJ017017; Tue, 24 Mar 2009 14:11:07 -0400 (EDT) To: Ben Ali Rachid cc: pgsql-hackers@postgresql.org Subject: Re: Function C and INOUT parameters In-reply-to: <665164.63021.qm@web28512.mail.ukl.yahoo.com> References: <665164.63021.qm@web28512.mail.ukl.yahoo.com> Comments: In-reply-to Ben Ali Rachid message dated "Tue, 24 Mar 2009 16:54:30 -0000" Date: Tue, 24 Mar 2009 14:11:07 -0400 Message-ID: <17016.1237918267@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.009 tagged_above=0 required=5 tests=AWL=0.009 X-Spam-Level: X-Archive-Number: 200903/937 X-Sequence-Number: 135615 Ben Ali Rachid 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