Re: Get a table name

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Maciek Sakrejda <msakrejda(at)truviso(dot)com>
Cc: Filip Rembiałkowski <filip(dot)rembialkowski(at)gmail(dot)com>, Gianvito Pio <pio(dot)gianvito(at)gmail(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Get a table name
Date: 2009-12-28 01:31:36
Message-ID: 4B380A78.7080701@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Maciek Sakrejda wrote:
>> In general, no. That's because resultset columns can be "entangled" in more complex way than "column a of table b".
>
> Actually, this *is* defined at the protocol level:

> 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.

-O

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2009-12-28 01:38:01 Re: Get a table name
Previous Message Oliver Jowett 2009-12-28 01:28:55 Re: Get a table name