Re: Get a table name

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Get a table name
Дата
Msg-id 4B380A78.7080701@opencloud.com
обсуждение исходный текст
Ответ на Re: Get a table name  (Maciek Sakrejda <msakrejda@truviso.com>)
Ответы Re: Get a table name  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Get a table name
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Get a table name