From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Maciek Sakrejda <msakrejda@truviso.com>
Cc: Filip RembiaĆkowski <filip.rembialkowski@gmail.com>
Cc: Gianvito Pio <pio.gianvito@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Get a table name
Date: Sun, 27 Dec 2009 20:38:01 -0500
Message-ID: <20647.1261964281@sss.pgh.pa.us> (raw)
In-Reply-To: <4B380A78.7080701@opencloud.com>
References: <4B3737DA.4070408@gmail.com>
<92869e660912270459h55fd3024k97d8c5ee1d4cfd60@mail.gmail.com>
<895e58dd0912271412hbf14159w8b2d71600f098bc0@mail.gmail.com>
<4B380A78.7080701@opencloud.com>
Oliver Jowett <oliver@opencloud.com> 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
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, oliver@opencloud.com, msakrejda@truviso.com, filip.rembialkowski@gmail.com, pio.gianvito@gmail.com
Subject: Re: Get a table name
In-Reply-To: <20647.1261964281@sss.pgh.pa.us>
References: <4B3737DA.4070408@gmail.com> <92869e660912270459h55fd3024k97d8c5ee1d4cfd60@mail.gmail.com> <895e58dd0912271412hbf14159w8b2d71600f098bc0@mail.gmail.com> <4B380A78.7080701@opencloud.com> <20647.1261964281@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