pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Ken Johanson <pg-user@kensystem.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel
Date: Fri, 29 Dec 2006 10:47:02 -0500
Message-ID: <2557.1167407222@sss.pgh.pa.us> (raw)
In-Reply-To: <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com>
References: <4594B16C.5010609@kensystem.com>
	<3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com>

Dave Cramer <pg@fastcrypt.com> writes:
> The backend does not provide us with this information, so it is not  
> trivial to implement( or even possible in some cases) .

Huh?  We added table oid and column number to the RowDescription message
specifically to support those JDBC methods.  You would have to incur an
additional round trip to the server to get names from these numbers,
but it's certainly implementable ... and I thought it'd been implemented
long ago, so I'm a bit surprised by Ken's report.

As for getCatalogName, I think just returning the database name (which
you should still have from the connection request) would meet the spec.

			regards, tom lane



view thread (19+ messages)  latest in thread

Message-ID: <2557.1167407222@sss.pgh.pa.us>
Permalink:  ../2557.1167407222@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2557.1167407222@sss.pgh.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pg@fastcrypt.com, pg-user@kensystem.com
  Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel
  In-Reply-To: <2557.1167407222@sss.pgh.pa.us>
  References: <4594B16C.5010609@kensystem.com> <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com> <2557.1167407222@sss.pgh.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