Re: Module dependency on PostgeSQL version

From: "Thomas Hallgren" <thhal(at)mailblocks(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Module dependency on PostgeSQL version
Date: 2004-05-12 07:58:30
Message-ID: c7slla$128n$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


""Greg Sabino Mullane"" <greg(at)turnstep(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB SD 2004-05-12 09:20:29 Re: XLog: how to log?
Previous Message Shachar Shemesh 2004-05-12 07:46:00 Re: Probably security hole in postgresql-7.4.1