Re: [HACKERS] New variable server_version_num

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] New variable server_version_num
Date: 2006-08-12 03:49:33
Message-ID: 200608120349.k7C3nXb14341@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

David Fetter wrote:
> On Sat, Jul 29, 2006 at 09:14:16PM -0400, Greg Sabino Mullane wrote:
> > Today on IRC David Fetter and some others were discussing version
> > numbers and we realized that although libpq now provides the version
> > of Postgres as a number, this is still a wheel that is being
> > reinvented by apps many times over, as it is not available any other
> > way. Hence, a small patch to provide a new variable
> > "server_version_num", which is almost the same as "server_version"
> > but uses the handy PG_VERSION_NUM which allows apps to do things
> > like if ($version >= 80200) without having to parse apart the value
> > of server_version themselves.
>
> What's the status on applying this patch?

It is still in my mailbox. I am thinking it should be added.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2006-08-12 04:07:57 Re: Connection string
Previous Message Lee A Reum 2006-08-12 03:45:25 Problem with a dropped database

Browse pgsql-hackers by date

  From Date Subject
Next Message Satoshi Nagayasu 2006-08-12 04:12:42 Re: pgstattuple extension for indexes
Previous Message Tom Lane 2006-08-12 03:35:18 Re: [COMMITTERS] pgsql: plperl: Allow conversion from perl to postgresql array in OUT

Browse pgsql-patches by date

  From Date Subject
Next Message Satoshi Nagayasu 2006-08-12 04:12:42 Re: pgstattuple extension for indexes
Previous Message Tzahi Fadida 2006-08-12 01:52:01 Re: [PATCHES] Adding fulldisjunctions to the contrib