Re: Using libpq to access a repote database from a c trigger function breaks. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Using libpq to access a repote database from a c trigger function breaks.
Date
Msg-id 10057.983988847@sss.pgh.pa.us
Whole thread Raw
In response to Using libpq to access a repote database from a c trigger function breaks.  (pgsql-bugs@postgresql.org)
Responses Re: Using libpq to access a repote database from a c trigger function breaks.  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> Using libpq to access a repote database from a c trigger function breaks.

Try linking libpq.a into your .so file.  I think your references to
PQexec and so forth are being resolved to the
similarly-named-but-completely-different functions that exist in the
backend (see src/backend/libpq).  There is no copy of client libpq in
the standard backend.

            regards, tom lane

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Using libpq to access a repote database from a c trigger function breaks.
Next
From: Nicolas GIMMILLARO
Date:
Subject: seq scan on a table whereas an index exist