Re: Module dependency on PostgeSQL version

Поиск
Список
Период
Сортировка
От Thomas Hallgren
Тема Re: Module dependency on PostgeSQL version
Дата
Msg-id c7slla$128n$1@news.hub.org
обсуждение исходный текст
Ответ на Module dependency on PostgeSQL version  (Thomas Hallgren <thhal@mailblocks.com>)
Список pgsql-hackers
""Greg Sabino Mullane"" <greg@turnstep.com> wrote in message
> DBD::Pg uses "pg_config --version" and parses the output to set the
> version information before compiling. It finds pg_config by using
> PG envrironment variables, or looks in the path. Once running, it
> does a SELECT version() to find out what server it is running
> against. Whenever possible, is now uses the new protocol version
> information. It's much handier to just say:
>
> if (protocol>=3) {
> ...
> }
>

Great! The "SELECT version()" approach has the advantage of having an
already compiled version adapt to different versions of the backend. I'll
try and use that to overcome differences in patch levels.

Thanks,

Thomas Hallgren



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

Предыдущее
От: "Thomas Hallgren"
Дата:
Сообщение: Re: Module dependency on PostgeSQL version
Следующее
От: "Zeugswetter Andreas SB SD"
Дата:
Сообщение: Re: XLog: how to log?