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

Re: Version 1 Calling convention

From: "Jasbinder Bali" <jsbali(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: Version 1 Calling convention
Date: 2006-08-30 05:01:32
Message-ID: a47902760608292201t5d246549i84db6c03b0b305dd@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
Do i need to download spi.h from somewhere or what? I can't see it anywhere

On 8/30/06, Jasbinder Bali <jsbali(at)gmail(dot)com> wrote:
>
> OK. I've removed the ECPG code and error has gone away.
> Thanks
> jas
>
> On 8/30/06, Alvaro Herrera <alvherre(at)commandprompt(dot)com > wrote:
>
> > 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

pgsql-novice by date

Next:From: Martijn van OosterhoutDate: 2006-08-30 05:19:52
Subject: Re: Version 1 Calling convention
Previous:From: Jasbinder BaliDate: 2006-08-30 04:53:57
Subject: Re: Version 1 Calling convention

pgsql-general by date

Next:From: Patrick TJ McPheeDate: 2006-08-30 05:10:46
Subject: Re: Deathly slow performance on SMP red-hat system
Previous:From: Jasbinder BaliDate: 2006-08-30 04:53:57
Subject: Re: Version 1 Calling convention

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