Re: Libpq PGRES_COPY_BOTH - version compatibility

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Libpq PGRES_COPY_BOTH - version compatibility
Date: 2010-12-28 15:15:55
Message-ID: 19371.1293549355@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> On Tue, Dec 28, 2010 at 13:18, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> Adding a #define to our headers that you can test for seems like the way to go.

> That's kind of what I was going for ;)

I don't see the point. You're going to need a *run time* test on
PQserverVersion to figure out what the server will return, no?

Also, if you really do need to figure out which PG headers you're
compiling against, looking at catversion.h is the accepted way to do it.
There's no need for yet another symbol.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-12-28 15:30:42 Re: Function for dealing with xlog data
Previous Message Andy Colson 2010-12-28 15:10:13 page compression