Re: Modifying Makefile

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mohamed Yassin Eltabakh" <meltabak(at)cs(dot)purdue(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Modifying Makefile
Date: 2006-10-21 03:47:40
Message-ID: 21069.1161402460@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Mohamed Yassin Eltabakh" <meltabak(at)cs(dot)purdue(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message tobias.boes 2006-10-21 08:36:45 unsubscribe
Previous Message Gregory S. Williamson 2006-10-21 00:13:30 Re: Postgre SQL Urgent Help