Re: Get a table name - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Get a table name
Date
Msg-id 4B380A78.7080701@opencloud.com
Whole thread Raw
In response to Re: Get a table name  (Maciek Sakrejda <msakrejda@truviso.com>)
Responses Re: Get a table name
List 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


pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Get a table name
Next
From: Tom Lane
Date:
Subject: Re: Get a table name