| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера