Tom,

with the since 7.4 deprecated copy support functions in libpq, is there 
any define or other way to figure out if compiling against a pre-7.4 or 
post-7.4 libpq?


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


Wed, 03 Mar 2004 11:00:37 -0500
Jan Wieck <JanWieck@Yahoo.com>
Client side copy functionality
Jan Wieck <JanWieck@Yahoo.com> writes:
> with the since 7.4 deprecated copy support functions in libpq, is there 
> any define or other way to figure out if compiling against a pre-7.4 or 
> post-7.4 libpq?

Hm, don't think so.  If you've autoconfiscated your client code, you can
just put in a configure test for one of the newer libpq functions.

[ sounds of diff'ing ... ]  If you're desperate for an #ifdef solution,
it looks like you could test for the existence of one of the PG_DIAG_XXX
macros added to postgres_ext.h.  This seems a bit circuitous though.

			regards, tom lane

Wed, 03 Mar 2004 11:14:54 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: Client side copy functionality 