pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Paul M. Aoki <aoki@acm.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: no meaningful way to determine fe or be version?
Date: Fri, 24 Nov 2000 23:31:13 -0500 (EST)
Message-ID: <200011250431.XAA00531@candle.pha.pa.us> (raw)
In-Reply-To: <200011162052.eAGKqih26908@faerie.CS.Berkeley.EDU>

> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Yes, should we return the client or server version from the interface? 
> > If we return the server version, how does someone query the client version?
> 
> sorry, yes.  the client-side interfaces (DatabaseMetaData.getDriver*) 
> are actually fine - they return a major/minor version that have been
> getting manually updated (they're much more visible, being in 
> org/postgresql/Driver.java).  the server-side interfaces 
> (DatabaseMetaData.getDatabase{Name,Version}) are the ones that aren't
> tied to the server, return hardcoded strings and haven't been getting
> updated regularly.

Good news.  Someone supplied a patch to getDatabaseProductVersion() that
properly does the SELECT version(); and returns the result.  It will
appear in 7.1.


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (8+ messages)

Message-ID: <200011250431.XAA00531@candle.pha.pa.us>
Permalink:  ../200011250431.XAA00531@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200011250431.XAA00531@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pgman@candle.pha.pa.us, aoki@acm.org, pgsql-bugs@postgresql.org
  Subject: Re: no meaningful way to determine fe or be version?
  In-Reply-To: <200011250431.XAA00531@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox