pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
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 11:15:57 -0500
Message-ID: <674F8180-BA35-4CBA-9A4E-2A8EBDE0B095@fastcrypt.com> (raw)
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>

I stand corrected. I'll try to find some time this week to work on  
some of the outstanding issues.

Tom, as of which version has this been implemented ?

Dave
On 29-Dec-06, at 10:47 AM, Tom Lane wrote:

> 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: <674F8180-BA35-4CBA-9A4E-2A8EBDE0B095@fastcrypt.com>
Permalink:  ../674F8180-BA35-4CBA-9A4E-2A8EBDE0B095@fastcrypt.com/
Also on:    postgresql.org/message-id/674F8180-BA35-4CBA-9A4E-2A8EBDE0B095@fastcrypt.com

 · 

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: pg@fastcrypt.com, tgl@sss.pgh.pa.us, pg-user@kensystem.com
  Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel
  In-Reply-To: <674F8180-BA35-4CBA-9A4E-2A8EBDE0B095@fastcrypt.com>
  References: <4594B16C.5010609@kensystem.com> <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com> <2557.1167407222@sss.pgh.pa.us> <674F8180-BA35-4CBA-9A4E-2A8EBDE0B095@fastcrypt.com>

* 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