Re: New variable server_version_num

From: David Fetter <david(at)fetter(dot)org>
To: Christopher Browne <cbbrowne(at)acm(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: New variable server_version_num
Date: 2006-08-02 06:58:00
Message-ID: 20060802065800.GE21236@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

On Tue, Aug 01, 2006 at 04:25:00PM -0400, Christopher Browne wrote:
> ?column? | setting
> ----------+---------
> 5432 | 7.4.13
> (1 row)
>
> ?column? | setting
> ----------+---------
> 5533 | 7.4.10
> (1 row)
>
> ?column? | setting
> ----------+---------
> 5532 | 8.0.5
> (1 row)
>
> ?column? | setting
> ----------+----------
> 5882 | 8.2devel
> (1 row)
>
> If I wanted to, it oughtn't be difficult to "string smash" those
> settings into something very nearly useful...

It may or may not be difficult, depending on your definition of
'difficult,' but it's very easy and reproducible to get something that
can be cast to integer and compared that way. The existence of
version-number-comparison libraries like version.pm points to the idea
that it is, in fact, difficult to compare versions in general.

Cheers,
D
--
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 phazon 2006-08-02 07:25:43 Re: prepare, execute & oids
Previous Message Flemming Frandsen 2006-08-02 06:34:53 Re: LISTEN considered dangerous

Browse pgsql-hackers by date

  From Date Subject
Next Message Adrian Maier 2006-08-02 06:59:28 Re: float8 regression failure (HEAD, cygwin)
Previous Message Michael Glaesemann 2006-08-02 06:54:00 Re: Values list-of-targetlists patch for comments (was Re: [PATCHES]

Browse pgsql-patches by date

  From Date Subject
Next Message Adrian Maier 2006-08-02 06:59:28 Re: float8 regression failure (HEAD, cygwin)
Previous Message Michael Glaesemann 2006-08-02 06:54:00 Re: Values list-of-targetlists patch for comments (was Re: [PATCHES]