Re: New variable server_version_num

From: David Fetter <david(at)fetter(dot)org>
To: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, Greg Sabino Mullane <greg(at)turnstep(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: New variable server_version_num
Date: 2006-07-30 16:27:15
Message-ID: 20060730162715.GS2654@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

On Sun, Jul 30, 2006 at 12:17:57PM -0400, Jonah H. Harris wrote:
> On 7/30/06, David Fetter <david(at)fetter(dot)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(at)fetter(dot)org> http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter

Remember to vote!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2006-07-30 16:48:33 Re: Performance of the listen command
Previous Message Jonah H. Harris 2006-07-30 16:17:57 Re: New variable server_version_num

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-07-30 17:15:41 Re: [PATCHES] 8.2 features?
Previous Message Jonah H. Harris 2006-07-30 16:17:57 Re: New variable server_version_num

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-07-30 17:15:41 Re: [PATCHES] 8.2 features?
Previous Message Jonah H. Harris 2006-07-30 16:17:57 Re: New variable server_version_num