Exposing PG_VERSION_NUM in pg_config

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Exposing PG_VERSION_NUM in pg_config
Дата
Msg-id CAB7nPqTAdAJpX8iK4V3uYJbO2Kmo8rHzqJKDsLaDdranNrGX_A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Exposing PG_VERSION_NUM in pg_config  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-hackers
Hi all,

When working on extensions or packaging, one can do some grep-ing on
pg_config.h to get PG_VERSION_NUM to do version-related operations. An
example of that is the Makefile of plv8 using --include-dir with perl
and a regex:
https://github.com/plv8/plv8/blob/master/Makefile
Wouldn't it be more simple to expose PG_VERSION_NUM in pg_config with
a new option? Like that for example:
$ pg_config --version-num
90500

Attached is a patch implementing the idea.
Regards,
--
Michael

Вложения

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

Предыдущее
От: Rajeev rastogi
Дата:
Сообщение: Materialiation is slower than non-materialized
Следующее
От: Florian Weimer
Дата:
Сообщение: Re: SSL renegotiation