From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Kevin Neufeld <kneufeld@refractions.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Parsed Query Trees
Date: Mon, 05 Nov 2007 22:25:34 -0500
Message-ID: <6895.1194319534@sss.pgh.pa.us> (raw)
In-Reply-To: <472F9EFC.7020406@opencloud.com>
References: <472F6509.10908@refractions.net>
<472F9EFC.7020406@opencloud.com>
Oliver Jowett <oliver@opencloud.com> writes:
> Kevin Neufeld wrote:
>> Does anyone know if a parsed query tree object is exposed in the jdbc
>> API? I couldn't find any such thing, nor could I find it in the
>> developers roadmap.
> No, and the reason is that the JDBC driver doesn't actually parse the
> query beyond some basic manipulations to find parameter placeholders and
> so on. All the real parsing happens on the server side, and I don't know
> of a way to get access to the server's query tree as a client. (It's
> debatable how useful that would be, anyway)
I'd very strongly resist exposing the server's parsetrees to clients,
because then changing them would represent a protocol break, and we
change them constantly.
If you're desperate to have an editing facility like this, put it into
server-side code ... and expect to revise it at every major release.
regards, tom lane
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: tgl@sss.pgh.pa.us, oliver@opencloud.com, kneufeld@refractions.net
Subject: Re: Parsed Query Trees
In-Reply-To: <6895.1194319534@sss.pgh.pa.us>
References: <472F6509.10908@refractions.net> <472F9EFC.7020406@opencloud.com> <6895.1194319534@sss.pgh.pa.us>
* 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