Re: Module dependency on PostgeSQL version

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Module dependency on PostgeSQL version
Date: 2004-05-12 01:55:40
Message-ID: 722b67084cca4205aef84fecd3c6443d@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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) {
...
}

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200405112153

-----BEGIN PGP SIGNATURE-----

iD8DBQFAoYRyvJuQZxSWSsgRAj8oAJwP4AxEYsBwnbeo4Aw97JtCpUC4tACgo0P1
WMvC9yck8REb15E4uod56hA=
=C2GF
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-05-12 03:47:07 Re: XLog: how to log?
Previous Message Tom Lane 2004-05-11 23:05:38 Re: Probably security hole in postgresql-7.4.1