Re: Version defines

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Version defines
Дата
Msg-id 41855F15.1060805@joeconway.com
обсуждение исходный текст
Ответ на Re: Version defines  (James William Pye <flaw@rhid.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: make check error on -HEAD
Следующее
От: Andrew Dunstan
Дата:
Сообщение: horology and DST changeover