Re: Exposing PG_VERSION_NUM in pg_config

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Exposing PG_VERSION_NUM in pg_config
Дата
Msg-id
7900.1427231875@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Exposing PG_VERSION_NUM in pg_config Michael Paquier <michael.paquier@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Exposing PG_VERSION_NUM in pg_config Michael Paquier <michael.paquier@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Exposing PG_VERSION_NUM in pg_config Tom Lane <tgl@sss.pgh.pa.us>
Re: Exposing PG_VERSION_NUM in pg_config Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Exposing PG_VERSION_NUM in pg_config Tom Lane <tgl@sss.pgh.pa.us>
Re: Exposing PG_VERSION_NUM in pg_config David Fetter <david@fetter.org>
Re: Exposing PG_VERSION_NUM in pg_config Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Exposing PG_VERSION_NUM in pg_config Tom Lane <tgl@sss.pgh.pa.us>
Re: Exposing PG_VERSION_NUM in pg_config Andres Freund <andres@2ndquadrant.com>
Re: Exposing PG_VERSION_NUM in pg_config Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Exposing PG_VERSION_NUM in pg_config Michael Paquier <michael.paquier@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config Tom Lane <tgl@sss.pgh.pa.us>
Re: Exposing PG_VERSION_NUM in pg_config Michael Paquier <michael.paquier@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config Tom Lane <tgl@sss.pgh.pa.us>
Re: Exposing PG_VERSION_NUM in pg_config Andres Freund <andres@anarazel.de>
Re: Exposing PG_VERSION_NUM in pg_config Pavel Stehule <pavel.stehule@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config Peter Eisentraut <peter_e@gmx.net>
Re: Exposing PG_VERSION_NUM in pg_config Michael Paquier <michael.paquier@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config David Fetter <david@fetter.org>
Re: Exposing PG_VERSION_NUM in pg_config Peter Eisentraut <peter_e@gmx.net>
Re: Exposing PG_VERSION_NUM in pg_config Michael Paquier <michael.paquier@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config Tom Lane <tgl@sss.pgh.pa.us>
Re: Exposing PG_VERSION_NUM in pg_config Michael Paquier <michael.paquier@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config Peter Eisentraut <peter_e@gmx.net>
Re: Exposing PG_VERSION_NUM in pg_config Michael Paquier <michael.paquier@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Exposing PG_VERSION_NUM in pg_config Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Exposing PG_VERSION_NUM in pg_config Pavel Stehule <pavel.stehule@gmail.com>
Re: Exposing PG_VERSION_NUM in pg_config Michael Paquier <michael.paquier@gmail.com>
Andrew Gierth  writes:
> "Michael" == Michael Paquier  writes:
>  Michael> Well, my point is to have something on which you can directly
>  Michael> apply maths on without changing its shape ;)

> There's this trick:

> # if version < 9.1 ...
> ifeq ($(filter-out 7.% 8.% 9.0, $(MAJORVERSION)),)
> # stuff
> endif

> # if version >= 9.3
> ifneq ($(filter-out 7.% 8.% 9.0 9.1 9.2, $(MAJORVERSION)),)
> # stuff
> endif

That's pretty ugly :-(.  I concur with Michael that there's value in
exposing the version number in the numeric form used by PG_VERSION_NUM.
However, I also concur with Andrew that if the use-case for this is
Makefiles, pg_config is a pretty poor transmission mechanism.
We should instead add PG_VERSION_NUM to the version variables set in
Makefile.global.
		regards, tom lane


В списке pgsql-hackers по дате отправления
От: Andrew Gierth
Дата:
Сообщение: Re: INT64_MIN and _MAX
От: Baker, Keith [OCDUS Non-J&J]
Дата:
FAQ