Re: #include "executor/spi.h" throwing errors

From: "Harpreet Dhaliwal" <harpreet(dot)dhaliwal01(at)gmail(dot)com>
To: "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: #include "executor/spi.h" throwing errors
Date: 2006-08-30 06:59:45
Message-ID: d86a77ef0608292359p4c30dd07i9d755c9666593b4c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Can you please email me your spi.h.
Need to see the path of other header files that spi.h includes and compare
it with what i have.

~Harpreet

On 8/30/06, Harpreet Dhaliwal <harpreet(dot)dhaliwal01(at)gmail(dot)com> wrote:
>
> Now i did something like this
>
>
> $ cat a.c
> #include <executor/spi.h>
> $ gcc -I /usr/include/pgsql/server -c a.c
> $
>
> still getting the same errors.
>
> The only difference between your and my code being
> /usr/include/postgresql/server and /usr/include/pgsql/server
>
>
>
> On 8/30/06, Martijn van Oosterhout <kleptog(at)svana(dot)org> wrote:
>
> > On Wed, Aug 30, 2006 at 02:16:36AM -0400, Harpreet Dhaliwal wrote:
> > Hi,
> > I'm trying to use SPI for database connectivity at the server side.
>
> <snip>
>
> > This throws hell lot of errors (hundreds of them), even if i don't have
> any
> > SPI code in my C file as of now.
> >
> > Can anyone please tell me whats going wrong and what header files should
> be
> > kept where?
>
> Well, you're doing something wrong then:
>
> $ cat a.c
> #include <executor/spi.h>
> $ gcc -I /usr/include/postgresql/server -c a.c
> $
>
> No errors or warnings. Please show the exact command you're using.
>
> Have a nice day,
> --
> Martijn van Oosterhout < kleptog(at)svana(dot)org> http://svana.org/kleptog/
> > From each according to his ability. To each according to his ability to
> litigate.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFE9S/1IB7bNG8LQkwRAolRAJ9Kx0cFrzFiox0Bva5dD/nps+9EKQCdGsyn
> +46ZT9EMGLoYC55WGuhaRvQ=
> =eDn0
> -----END PGP SIGNATURE-----
>
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-08-30 07:03:26 Re: #include "executor/spi.h" throwing errors
Previous Message Harpreet Dhaliwal 2006-08-30 06:53:49 Re: #include "executor/spi.h" throwing errors