pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Janning Vygen <vygen@planwerk6.de>
To: pgsql-general@postgresql.org
Subject: Re: Prepared Statements
Date: Sun, 13 Jan 2008 12:13:55 +0100
Message-ID: <200801131213.55570.vygen@planwerk6.de> (raw)
In-Reply-To: <24034.1200181610@sss.pgh.pa.us>
References: <200801092002.15417.mljv@planwerk6.de>
	<Pine.BSO.4.64.0801121657280.9136@leary.csoft.net>
	<24034.1200181610@sss.pgh.pa.us>

Am Sonntag 13 Januar 2008 00:46:50 schrieb Tom Lane:
> Kris Jurka <books@ejurka.com> writes:
> > On Thu, 10 Jan 2008, mljv@planwerk6.de wrote:
> >> What do you mean with "longer lifespan"? Doesn't the JDBC driver uses
> >> the PREPARE Sql Statement and therefore the prepared Statement has the
> >> same lifespan as the connection? If so, as connections are pooled and
> >> never closed, the prepared Statement will last forever. What if the
> >> table analyzes changes and a better execution plan could be found?
> >
> > Data and stats changes do not trigger a replan.
>
> Note that this is no longer true as of 8.3: a stats update from ANALYZE
> (either manual or autovacuum) will trigger invalidation of cached plans.

great, i have too look out for 8.3, but i am quite happy with 8.1 because of 
automatic security updates coming with debian out of the box. I have to look 
for another way to replan. Maybe i just have to close and reopen my 
connections from time to time.

kind regards
Janning




view thread (19+ messages)  latest in thread

Message-ID: <200801131213.55570.vygen@planwerk6.de>
Permalink:  ../200801131213.55570.vygen@planwerk6.de/
Also on:    postgresql.org/message-id/200801131213.55570.vygen@planwerk6.de

 · 

reply

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-general@postgresql.org
  Cc: vygen@planwerk6.de
  Subject: Re: Prepared Statements
  In-Reply-To: <200801131213.55570.vygen@planwerk6.de>
  References: <200801092002.15417.mljv@planwerk6.de> <Pine.BSO.4.64.0801121657280.9136@leary.csoft.net> <24034.1200181610@sss.pgh.pa.us> <200801131213.55570.vygen@planwerk6.de>

* 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