From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Jurka <books@ejurka.com>
Cc: Strong, David <david.strong@unisys.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: jdbc driver performance TODO
Date: Tue, 31 Oct 2006 16:20:34 -0500
Message-ID: <8940.1162329634@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSO.4.63.0610311428220.12111@leary2.csoft.net>
References: <B6419AF36AC8524082E1BC17DA2506E80329F7D5@USMV-EXCH2.na.uis.unisys.com>
<Pine.BSO.4.63.0610311428220.12111@leary2.csoft.net>
Kris Jurka <books@ejurka.com> writes:
> Right now it's not a big deal for the driver because plans don't change,
> but for 8.3 there are plans to do prepared query invalidation when
> underlying tables change. At that point we'd need to detect and refetch
> metadata. I'm not sure how a client would detect this change.
We haven't really talked about the semantics of this stuff, but I'm
inclined to think that a prepared statement ought to go into some kind
of "broken" status where it couldn't be invoked, if a change occurs that
would force a change in the output column set. Otherwise you could have
situations where a client does Describe Statement followed (almost)
immediately by Execute and gets inconsistent results. I think we really
want the auto-replan facility to handle things like addition of a new
index or availability of new ANALYZE stats --- having it automatically
propagate things like an ALTER COLUMN TYPE seems a good bit more
questionable.
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, books@ejurka.com, david.strong@unisys.com, simon@2ndquadrant.com
Subject: Re: jdbc driver performance TODO
In-Reply-To: <8940.1162329634@sss.pgh.pa.us>
References: <B6419AF36AC8524082E1BC17DA2506E80329F7D5@USMV-EXCH2.na.uis.unisys.com> <Pine.BSO.4.63.0610311428220.12111@leary2.csoft.net> <8940.1162329634@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