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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces pgsql-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

Browse pgsql-hackers by date

  From Date Subject
Next Message Joel Burton 2002-05-17 13:57:39 Re: Updated CREATE FUNCTION syntax
Previous Message Peter Eisentraut 2002-05-17 13:36:43 Re: Updated CREATE FUNCTION syntax

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thomas Lockhart 2002-05-17 14:36:53 Re: date formats with ecpg and JDBC
Previous Message Nicolas Bazin 2002-05-17 05:46:55 Re: date formats with ecpg and JDBC

Browse pgsql-patches by date

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