Re: How to check the postgresql version

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: How to check the postgresql version
Дата
Msg-id 41A06BE4.1060607@samurai.com
обсуждение исходный текст
Ответ на How to check the postgresql version  (Ruey-Lung Hsiao <rlhsiao@gmail.com>)
Ответы Re: How to check the postgresql version
Список pgsql-hackers
Ruey-Lung Hsiao wrote:
>   My problem is: I can't find a way to compare strings in C preprocessor 
> directive since PG_VERSION is defined as something like "7.4.3" or 
> "7.4.6".

You could try using CATALOG_VERSION_NO in src/include/catversion.h as a 
substitute for the version number.

I think it would probably be a good idea to add a PG_VERSION-workalike 
that is more amenable to use with cpp, though.

-Neil


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Re: Error handling in plperl and pltcl
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: Error handling in plperl and pltcl