From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mohamed Yassin Eltabakh <meltabak@cs.purdue.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Modifying Makefile
Date: Fri, 20 Oct 2006 23:47:40 -0400
Message-ID: <21069.1161402460@sss.pgh.pa.us> (raw)
In-Reply-To: <01b801c6efb9$7221be00$e9090a80@ad.cs.purdue.edu>
References: <01b801c6efb9$7221be00$e9090a80@ad.cs.purdue.edu>
"Mohamed Yassin Eltabakh" <meltabak@cs.purdue.edu> writes:
> I updated the src/backend/parser/Makefile and added "new.o" to the OBJS
> list, but when I compile I receive error:
> ....undefined reference to `PSQLexec'
> ....undefined reference to `PQntuples'
> ....undefined reference to `PQclear'
You seem to be trying to use the libpq client from inside the backend.
This is entirely inappropriate. If you need to run general-purpose SQL
queries you can use SPI, but code that is doing that probably does not
belong in /parser. Just about anything that makes sense to do during
parse analysis should be adequately supported by the system catalog
cache routines.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, meltabak@cs.purdue.edu
Subject: Re: Modifying Makefile
In-Reply-To: <21069.1161402460@sss.pgh.pa.us>
References: <01b801c6efb9$7221be00$e9090a80@ad.cs.purdue.edu> <21069.1161402460@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