Re: Version 1 Calling convention - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Version 1 Calling convention
Date
Msg-id 20060830042815.GN25208@alvh.no-ip.org
Whole thread Raw
In response to Version 1 Calling convention  ("Jasbinder Bali" <jsbali@gmail.com>)
Responses Re: Version 1 Calling convention  ("Jasbinder Bali" <jsbali@gmail.com>)
Re: Version 1 Calling convention  ("Jasbinder Bali" <jsbali@gmail.com>)
List pgsql-general
Jasbinder Bali wrote:
> I have a .pgc file and i have the following code snippet in it:
>
> PG_FUNCTION_INFO_V1 (test);
>
> Datum
> test (PG_FUNCTION_ARGS)
> {
>  EXEC SQL BEGIN DECLARE SECTION;

You can't use ecpg in server-side functions.  You need to use the SPI
interface.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: "Jasbinder Bali"
Date:
Subject: Version 1 Calling convention
Next
From: "Jasbinder Bali"
Date:
Subject: Re: Version 1 Calling convention