Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0861A9F9290 for ; Mon, 5 Nov 2007 18:53:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90817-01 for ; Mon, 5 Nov 2007 18:53:33 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id D223A9F9274 for ; Mon, 5 Nov 2007 18:53:32 -0400 (AST) Received: from 219-88-219-238.jetstream.xtra.co.nz ([219.88.219.238] helo=[10.1.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IpAow-0005d8-Oe; Tue, 06 Nov 2007 11:53:27 +1300 Message-ID: <472F9EFC.7020406@opencloud.com> Date: Tue, 06 Nov 2007 11:53:48 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Kevin Neufeld CC: pgsql-jdbc@postgresql.org Subject: Re: Parsed Query Trees References: <472F6509.10908@refractions.net> In-Reply-To: <472F6509.10908@refractions.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200711/5 X-Sequence-Number: 17760 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) -O