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

Re: Error with refering to the header files

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ibrahim, Karim Aly Mohi Eldin" <kaibrahim(at)WPI(dot)EDU>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Error with refering to the header files
Date: 2012-05-15 10:58:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
"Ibrahim, Karim Aly Mohi Eldin" <kaibrahim(at)WPI(dot)EDU> writes:
> Im new to postgres and I have some C files that execute sql commands in the early parser stage..
> It has to include  #include "libpq-fe.h" which is in the "interface" folder not the "include" folder so I edited the make file like following:

Not sure about the specific error you're getting, but ISTM you're going
about this all wrong anyway.  Using libpq from inside the backend is,
unless you're trying to do dblink-like remote access, just broken.
Consider SPI instead if you want to issue SQL-level queries.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Martin PittDate: 2012-05-15 12:25:00
Subject: 9.2beta1 regression: pg_restore --data-only does not set sequence values any more
Previous:From: Ibrahim, Karim Aly Mohi EldinDate: 2012-05-15 04:56:34
Subject: Error with refering to the header files

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