Re: Use of PG_VERSION

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use of PG_VERSION
Дата
Msg-id 27501.1262815707@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Use of PG_VERSION  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Use of PG_VERSION  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Is there a reason tablespace.c::set_short_version() uses PG_VERSION, and
> not the simpler PG_MAJORVERSION?  initdb.c::get_short_version() does the
> same thing.

Probably that code predates the addition of the separate PG_MAJORVERSION
#define.  +1 for simplifying.  The change I just had to make in
backend/catalog/Makefile reinforces the thought that MAJORVERSION is
what we should be using in everyplace related to this type of check.
        regards, tom lane


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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: unresolved bugs
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Testing with concurrent sessions