Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] libpgtcl - backend version information patch

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
Cc: pgsql-patches(at)postgresql(dot)org, <pgsql-interfaces(at)postgresql(dot)org>,PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [INTERFACES] libpgtcl - backend version information patch
Date: 2002-05-17 13:37:05
Message-ID: Pine.LNX.4.44.0205171357560.1096-100000@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfacespgsql-patches
Nigel J. Andrews writes:

> I've attached a patch for libpgtcl which adds access to backend version
> numbers.
>
> This is via a new command:
>
> pg_version <db channel> <major varname> ?<minor varname>? ?<patch varname>?

This doesn't truly reflect the way PostgreSQL version numbers are handled.
Say for 7.2.1, the "major" is really "7.2" and the minor is "1".  With the
interface you proposed, the information major == 7 doesn't really convey
any useful information.

> I envisage this patch applied to 7.3 tip and to 7.2 for the 7.2.2
> release mentioned a couple of days ago. The only problem with doing this
> for 7.2 that I can see is where people doing the 'package -exact require
> Pgtcl 1.x' thing, and how many of those are there? Even PgAccess doesn't
> use that.

Normally we only put bug fixes in minor releases.  PgAccess may get an
exception, but bumping the version number of a library is stretching it a
little.  If you're intending to use the function for PgAccess, why not
make it internal to PgAccess?  That way you can tune the major/minor thing
exactly how you need it.

-- 
Peter Eisentraut   peter_e(at)gmx(dot)net


In response to

pgsql-hackers by date

Next:From: Joel BurtonDate: 2002-05-17 13:57:39
Subject: Re: Updated CREATE FUNCTION syntax
Previous:From: Peter EisentrautDate: 2002-05-17 13:36:43
Subject: Re: Updated CREATE FUNCTION syntax

pgsql-patches by date

Next:From: Permaine CheungDate: 2002-05-17 18:48:06
Subject: patch for examples
Previous:From: Bear GilesDate: 2002-05-17 05:09:04
Subject: patch for SSL cleanup, client certificates

pgsql-interfaces by date

Next:From: Thomas LockhartDate: 2002-05-17 14:36:53
Subject: Re: date formats with ecpg and JDBC
Previous:From: Nicolas BazinDate: 2002-05-17 05:46:55
Subject: Re: date formats with ecpg and JDBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group