pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ibrahim, Karim Aly Mohi Eldin <kaibrahim@WPI.EDU>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Error with refering to the header files
Date: Tue, 15 May 2012 06:58:22 -0400
Message-ID: <21845.1337079502@sss.pgh.pa.us> (raw)
In-Reply-To: <37E2237DEB47A347B779768285A19AD657C058E9@S281.admin.wpi.edu>
References: <37E2237DEB47A347B779768285A19AD657C058E9@S281.admin.wpi.edu>

"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 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



view thread (2+ messages)

Message-ID: <21845.1337079502@sss.pgh.pa.us>
Permalink:  ../21845.1337079502@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21845.1337079502@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kaibrahim@WPI.EDU
  Subject: Re: Error with refering to the header files
  In-Reply-To: <21845.1337079502@sss.pgh.pa.us>
  References: <37E2237DEB47A347B779768285A19AD657C058E9@S281.admin.wpi.edu> <21845.1337079502@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox