Re: Deleting prepared statements from libpq. - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Deleting prepared statements from libpq.
Date
Msg-id ZI+TtlI0Gfg1V1kx@paquier.xyz
Whole thread Raw
In response to Re: Deleting prepared statements from libpq.  (jian he <jian.universality@gmail.com>)
List pgsql-hackers
On Sun, Jun 18, 2023 at 09:23:22PM +0800, jian he wrote:
> previously I cannot link it. with
> v2-0001-Support-sending-Close-messages-from-libpq.patch. now I can
> compile it, link it, but then run time error.
> same c program in the first email.
> when I run it ./a.out, then error:
> ./a.out: symbol lookup error: ./a.out: undefined symbol: PQsendClosePrepared

If you still have problems, it seems to me that one mistake is in not
updating LD_LIBRARY_PATH.  It should point to a version of libpq
compiled with the patch, or -lpq will not be able to resolve correctly
when compiling your test program.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH] hstore: Fix parsing on Mac OS X: isspace() is locale specific
Next
From: Michael Paquier
Date:
Subject: Re: Deleting prepared statements from libpq.