pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tatsuo Ishii <t-ishii@sra.co.jp>
To: tgl@sss.pgh.pa.us
Cc: matt@ymogen.net
Cc: pg@rbt.ca
Cc: awerman2@hotmail.com
Cc: scottakirkwood@gmail.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Caching of Queries
Date: Thu, 07 Oct 2004 16:18:42 +0900 (JST)
Message-ID: <20041007.161842.77062117.t-ishii@sra.co.jp> (raw)
In-Reply-To: <23362.1097118734@sss.pgh.pa.us>
References: <012501c4aaf0$f12d0930$8300a8c0@solent>
	<20041007.100847.26272104.t-ishii@sra.co.jp>
	<23362.1097118734@sss.pgh.pa.us>

> Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> > First, it's not a particular problem with pgpool. As far as I know any
> > connection pool solution has exactly the same problem. Second, it's
> > easy to fix if PostgreSQL provides a functionarity such as:"drop all
> > temporary tables if any".
> 
> I don't like that definition exactly --- it would mean that every time
> we add more backend-local state, we expect client drivers to know to
> issue the right incantation to reset that kind of state.
> 
> I'm thinking we need to invent a command like "RESET CONNECTION" that
> resets GUC variables, drops temp tables, forgets active NOTIFYs, and
> generally does whatever else needs to be done to make the session state
> appear virgin.  When we add more such state, we can fix it inside the
> backend without bothering clients.

Great. It's much better than I propose.

> I now realize that our "RESET ALL" command for GUC variables was not
> fully thought out.  We could possibly redefine it as doing the above,
> but that might break some applications ...
> 
> 			regards, tom lane
> 



view thread (72+ messages)  latest in thread

Message-ID: <20041007.161842.77062117.t-ishii@sra.co.jp>
Permalink:  ../20041007.161842.77062117.t-ishii@sra.co.jp/
Also on:    postgresql.org/message-id/20041007.161842.77062117.t-ishii@sra.co.jp

 · 

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-performance@postgresql.org
  Cc: t-ishii@sra.co.jp, tgl@sss.pgh.pa.us, matt@ymogen.net, pg@rbt.ca, awerman2@hotmail.com, scottakirkwood@gmail.com
  Subject: Re: Caching of Queries
  In-Reply-To: <20041007.161842.77062117.t-ishii@sra.co.jp>
  References: <012501c4aaf0$f12d0930$8300a8c0@solent> <20041007.100847.26272104.t-ishii@sra.co.jp> <23362.1097118734@sss.pgh.pa.us> <20041007.161842.77062117.t-ishii@sra.co.jp>

* 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