From: Oliver Jowett <oliver@opencloud.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: patch for passing the cts
Date: Thu, 16 Jun 2005 01:37:09 +1200
Message-ID: <42B02F05.7000209@opencloud.com> (raw)
In-Reply-To: <379C1838-A611-4DB0-92D5-EF78C2FCFB1E@fastcrypt.com>
References: <2BC23AE7-6381-41BA-AE89-CC81D1C932A7@fastcrypt.com>
<42AF6682.6000405@opencloud.com>
<EB3B2C5E-9B58-44F8-8FD8-A23407F9EEA9@fastcrypt.com>
<42AFB291.6070405@opencloud.com>
<379C1838-A611-4DB0-92D5-EF78C2FCFB1E@fastcrypt.com>
Dave Cramer wrote:
> What about making the output of the current query parser a little more
> flexible, and putting some of the intelligence in the executor.
>
> More specifically, the parser currently breaks things up into fragments
> which are very easily re-assembled by the executor. Instead use the
> strategy below
The parsing is protocol-specific (different handling of
multiple-statement queries is the main thing), and we only need the
extra parsing complexity when we are handling a {call} escape.
We need an escape parser anyway since the backend doesn't know anything
about the JDBC escapes, so we'll have two parse steps going on anyway
unless you want to integrate that, too, into the query executor.
I can't see an obvious clean way of integrating this with the call
escape handling without duplicating lots of code and entangling the
high-level statement code with the low-level protocol details. I'd
prefer to see the query rewriting for {call} all happen in one place in
a protocol-independent way, and ideally only for the case when {call} is
actually used.
I really don't have any spare time for working on this in any detail :(
I'll swallow my objections if nothing better comes along, but I fear
that code turning into an unmaintainable mess.
-O
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, pg@fastcrypt.com
Subject: Re: patch for passing the cts
In-Reply-To: <42B02F05.7000209@opencloud.com>
References: <2BC23AE7-6381-41BA-AE89-CC81D1C932A7@fastcrypt.com> <42AF6682.6000405@opencloud.com> <EB3B2C5E-9B58-44F8-8FD8-A23407F9EEA9@fastcrypt.com> <42AFB291.6070405@opencloud.com> <379C1838-A611-4DB0-92D5-EF78C2FCFB1E@fastcrypt.com> <42B02F05.7000209@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