Re: [PATCHES] New variable server_version_num - Mailing list pgsql-hackers

From David Fetter
Subject Re: [PATCHES] New variable server_version_num
Date
Msg-id 20060730162715.GS2654@fetter.org
Whole thread Raw
In response to Re: [PATCHES] New variable server_version_num  ("Jonah H. Harris" <jonah.harris@gmail.com>)
List pgsql-hackers
On Sun, Jul 30, 2006 at 12:17:57PM -0400, Jonah H. Harris wrote:
> On 7/30/06, David Fetter <david@fetter.org> wrote:
> >Failure to parse means the transaction bails out, which is just
> >what I want in my case, as it disallows people attempting to run
> >the programs--they're for DBI-Link--on too early a version of
> >PostgreSQL.  As there are some subtleties to the implementation, I
> >need something that quickly returns boolean or fails entirely when
> >it detects same.
>
> From an application development standpoint, it would be nice to have
> a strictly numeric version returning function for checking server
> compatibility.

It sure would :)

Cheers,
D (whose boolean function is the output of a numeric comparison
between the required server version and the one at hand)
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!

pgsql-hackers by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Re: [PATCHES] New variable server_version_num
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] 8.2 features?