pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: 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: Mon, 28 Dec 2009 14:31:36 +1300
Message-ID: <4B380A78.7080701@opencloud.com> (raw)
In-Reply-To: <895e58dd0912271412hbf14159w8b2d71600f098bc0@mail.gmail.com>
References: <4B3737DA.4070408@gmail.com>
	<92869e660912270459h55fd3024k97d8c5ee1d4cfd60@mail.gmail.com>
	<895e58dd0912271412hbf14159w8b2d71600f098bc0@mail.gmail.com>

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




view thread (8+ messages)  latest in thread

Message-ID: <4B380A78.7080701@opencloud.com>
Permalink:  ../4B380A78.7080701@opencloud.com/
Also on:    postgresql.org/message-id/4B380A78.7080701@opencloud.com

 · 

reply

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: oliver@opencloud.com, msakrejda@truviso.com, filip.rembialkowski@gmail.com, pio.gianvito@gmail.com
  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>

* 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