pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kevin Grittner <kgrittn@mail.com>
Cc: Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: wrong search_path being used
Date: Sun, 13 Jan 2013 21:18:26 +0100
Message-ID: <20130113201826.GA27004@awork2.anarazel.de> (raw)
In-Reply-To: <22441.1358021631@sss.pgh.pa.us>
References: <20130112185917.255770@gmx.com>
	<21642.1358018978@sss.pgh.pa.us>
	<20130112193906.GC21523@awork2.anarazel.de>
	<22441.1358021631@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2013-01-12 15:13:51 -0500, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> > On 2013-01-12 14:29:38 -0500, Tom Lane wrote:
> >> I think that the alternative most likely to succeed is to consider any
> >> change in the active value of search_path as forcing replanning of
> >> cached plans.
> 
> > I guess it wouldn't really be feasible to keep the search path used to
> > plan a query in its cached form and check that it fits the one currently
> > used on every use of the cached plan?
> 
> Actually that's exactly what I meant: every time we arrive at a query
> with a cached plan, check to see if the active search_path value is the
> same as what it was when we made the cached plan, and replan if not.

Okay. I was afraid it would add noticeable overhead to stuff like
plpgsql... Maybe would lower that by having a "search_path" generation
counter that gets increased everytime it gets changed but that seems a
bit too complicated.

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (15+ messages)  latest in thread

Message-ID: <20130113201826.GA27004@awork2.anarazel.de>
Permalink:  ../20130113201826.GA27004@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20130113201826.GA27004@awork2.anarazel.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-bugs@postgresql.org
  Cc: andres@2ndquadrant.com, tgl@sss.pgh.pa.us, kgrittn@mail.com, rr.rosas@gmail.com
  Subject: Re: wrong search_path being used
  In-Reply-To: <20130113201826.GA27004@awork2.anarazel.de>
  References: <20130112185917.255770@gmx.com> <21642.1358018978@sss.pgh.pa.us> <20130112193906.GC21523@awork2.anarazel.de> <22441.1358021631@sss.pgh.pa.us> <20130113201826.GA27004@awork2.anarazel.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