Re: Version 1 Calling convention

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Jasbinder Bali <jsbali(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: Version 1 Calling convention
Date: 2006-08-30 04:28:15
Message-ID: 20060830042815.GN25208@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jasbinder Bali 2006-08-30 04:30:28 Re: Version 1 Calling convention
Previous Message Jasbinder Bali 2006-08-30 04:25:28 Version 1 Calling convention

Browse pgsql-novice by date

  From Date Subject
Next Message Jasbinder Bali 2006-08-30 04:30:28 Re: Version 1 Calling convention
Previous Message Jasbinder Bali 2006-08-30 04:25:28 Version 1 Calling convention