Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 33BAD9FA3A7 for ; Fri, 29 Dec 2006 12:15:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 43061-07 for ; Fri, 29 Dec 2006 12:15:46 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id CEBB59FA2EC for ; Fri, 29 Dec 2006 12:15:45 -0400 (AST) Received: (qmail 8564 invoked from network); 29 Dec 2006 16:15:45 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 29 Dec 2006 16:15:45 -0000 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> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <674F8180-BA35-4CBA-9A4E-2A8EBDE0B095@fastcrypt.com> Cc: Ken Johanson , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel Date: Fri, 29 Dec 2006 11:15:57 -0500 To: Tom Lane X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/132 X-Sequence-Number: 16364 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 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 >