Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D48299FA0B7 for ; Fri, 29 Dec 2006 11:47:21 -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 39923-05 for ; Fri, 29 Dec 2006 11:47:14 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5979E9FA097 for ; Fri, 29 Dec 2006 11:47:13 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kBTFl22C002558; Fri, 29 Dec 2006 10:47:02 -0500 (EST) To: Dave Cramer cc: Ken Johanson , pgsql-jdbc@postgresql.org Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel In-reply-to: <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com> References: <4594B16C.5010609@kensystem.com> <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com> Comments: In-reply-to Dave Cramer message dated "Fri, 29 Dec 2006 08:27:38 -0500" Date: Fri, 29 Dec 2006 10:47:02 -0500 Message-ID: <2557.1167407222@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/131 X-Sequence-Number: 16363 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