Re: getTableName

From: Barry Lind <blind(at)xythos(dot)com>
To: Dror Matalon <dror(at)zapatec(dot)com>
Cc: PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: getTableName
Date: 2002-12-16 22:03:34
Message-ID: 3DFE4DB6.8060806@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Dror Matalon wrote:
>
> select a, b, c from foo, bar where foo.b = bar.d;
>
> I don't see any reason why the server shouldn't know that a and b came
> from foo and c came from bar. I agree though that there will be cases
> where the table is unknown.
>

The key here being that only the server can know this since the client
(jdbc in this case) can't get the information from simply parsing the
query string. So this is a server enhancement request for the protocol
between the client and server. There has been talk of changing the
protocol in 7.4. So I would suggest that you take this request over to
the pgsql-hackers mail list for discussion there. If the work were done
in the server to provide this information it will be easy to incorporate
it into the jdbc driver.

thanks,
--Barry

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2002-12-16 22:18:00 Re: jdbc3
Previous Message Sagine E.Ferrus 2002-12-16 21:54:25 jdbc3