Received: from p1.selectacast.net (p1.selectacast.net [206.41.1.251]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eAH0Jes02664; Thu, 16 Nov 2000 19:19:40 -0500 (EST) (envelope-from jks@selectacast.net) Received: from selectacast.net (IDENT:jks@d1 [209.219.91.66]) by p1.selectacast.net (8.9.3/8.9.3) with ESMTP id TAA28288; Thu, 16 Nov 2000 19:17:53 -0500 Message-ID: <3A147930.4284AEA0@selectacast.net> Date: Thu, 16 Nov 2000 19:17:52 -0500 From: Joseph Shraibman Organization: Xtenit, Inc. http://www.xtenit.com X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.15 i686) X-Accept-Language: en MIME-Version: 1.0 To: Bruce Momjian CC: "Paul M. Aoki" , pgsql-bugs@postgresql.org, PostgreSQL-interfaces Subject: Re: [INTERFACES] Re: no meaningful way to determine fe or be version? References: <200011162058.PAA29730@candle.pha.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200011/104 X-Sequence-Number: 126 Bruce Momjian wrote: > > > Bruce Momjian 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. > > Oh, really. I didn't know there was that distinction. Sounds like they > should be callling SELECT version(). Comments, Java folks? > I remember someone posting a patch saying that he changed the code to do that. Or saying he was going to post a patch, I forget. Anyway, I just checked and it isn't in the cvs. -- Joseph Shraibman jks@selectacast.net Increase signal to noise ratio. http://www.targabot.com