#include "executor/spi.h" throwing errors - Mailing list pgsql-general

From Harpreet Dhaliwal
Subject #include "executor/spi.h" throwing errors
Date
Msg-id d86a77ef0608292316y494bc7c0we30ae5c82a29a431@mail.gmail.com
Whole thread Raw
Responses Re: #include "executor/spi.h" throwing errors  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Hi,
I'm trying to use SPI for database connectivity at the server side.

My database is intialized at /usr/local/pgsql/hps

spi.h is at the follwoing location

/usr/include/pgsql/server/executor.

I have a C file that has the SPI code and is located at /usr/local/pgsql/hps
I thin file i do #include "executor/spi.h"

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?

Thanks in advance,

~Harpreet

pgsql-general by date:

Previous
From: "Jasbinder Bali"
Date:
Subject: Re: Version 1 Calling convention
Next
From: Martijn van Oosterhout
Date:
Subject: Re: #include "executor/spi.h" throwing errors