Re: Version defines - Mailing list pgsql-hackers

From Joe Conway
Subject Re: Version defines
Date
Msg-id 41855F15.1060805@joeconway.com
Whole thread Raw
In response to Re: Version defines  (James William Pye <flaw@rhid.com>)
List pgsql-hackers
James William Pye wrote:
> If this is the stance that the group has, that is fine. For now, I will
> continue my shameful practice of parsing up pg_config --version and
> defining the components for use in my source. (;
> 

FWIW, here's what I've been using in PL/R for a while now:

/* working with postgres 7.3 compatible sources */
#if (CATALOG_VERSION_NO <= 200211021)
#define PG_VERSION_73_COMPAT
#elif (CATALOG_VERSION_NO <= 200310211)
#define PG_VERSION_74_COMPAT
#else
#define PG_VERSION_75_COMPAT
#endif


Joe


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: make check error on -HEAD
Next
From: Andrew Dunstan
Date:
Subject: horology and DST changeover