Re: Error with refering to the header files

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Error with refering to the header files
Дата
Msg-id 21845.1337079502@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Error with refering to the header files  ("Ibrahim, Karim Aly Mohi Eldin" <kaibrahim@WPI.EDU>)
Список pgsql-bugs
"Ibrahim, Karim Aly Mohi Eldin" <kaibrahim@WPI.EDU> writes:
> I’m 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
makefile 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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Ibrahim, Karim Aly Mohi Eldin"
Дата:
Сообщение: Error with refering to the header files
Следующее
От: Martin Pitt
Дата:
Сообщение: 9.2beta1 regression: pg_restore --data-only does not set sequence values any more