Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 9FE3A6328D6 for ; Sun, 27 Dec 2009 21:38:21 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 29873-10 for ; Mon, 28 Dec 2009 01:38:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id B3852632B18 for ; Sun, 27 Dec 2009 21:38:10 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id nBS1c1I3020648; Sun, 27 Dec 2009 20:38:01 -0500 (EST) To: Oliver Jowett cc: Maciek Sakrejda , =?UTF-8?B?RmlsaXAgUmVtYmlhxYJrb3dza2k=?= , Gianvito Pio , pgsql-jdbc@postgresql.org Subject: Re: Get a table name In-reply-to: <4B380A78.7080701@opencloud.com> References: <4B3737DA.4070408@gmail.com> <92869e660912270459h55fd3024k97d8c5ee1d4cfd60@mail.gmail.com> <895e58dd0912271412hbf14159w8b2d71600f098bc0@mail.gmail.com> <4B380A78.7080701@opencloud.com> Comments: In-reply-to Oliver Jowett message dated "Mon, 28 Dec 2009 14:31:36 +1300" Date: Sun, 27 Dec 2009 20:38:01 -0500 Message-ID: <20647.1261964281@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.546 tagged_above=-10 required=5 tests=AWL=0.053, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/103 X-Sequence-Number: 20184 Oliver Jowett writes: > Maciek Sakrejda wrote: >> No idea whether JDBC exposes this or whether the server actually sends >> the correct oids, or if this is just part of the protocol as a >> future-proofing attempt. > The driver exposes this via PGResultSetMetadata.getBaseTableName(), and > I believe the server does send useful data here. For the record, my recollection is that that part of the protocol was put in specifically at the request of the JDBC hackers. regards, tom lane