pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ingmar Brouns <swingi@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5902: pl/pgsql plans are not invalidated on discard all
Date: Mon, 28 Feb 2011 10:44:36 -0500
Message-ID: <7481.1298907876@sss.pgh.pa.us> (raw)
In-Reply-To: <201102281409.p1SE9vcS050393@wwwmaster.postgresql.org>
References: <201102281409.p1SE9vcS050393@wwwmaster.postgresql.org>

"Ingmar Brouns" <swingi@gmail.com> writes:
> Description:        pl/pgsql plans are not invalidated on discard all

Yes they are.

> I ran into the pl/pgsql Plan Invalidation and search_path bug that is on the
> todo list

> http://wiki.postgresql.org/wiki/Todo#PL.2FpgSQL

> I was looking for a workaround to this problem, and figured that calling
> 'discard all', or 'discard plans' should do the trick.

That's not a solution because the plancache module intentionally
preserves the original search_path value while replanning.  This
may not be what you wished for, but it's operating as intended,
and changing it would break other use-cases that work today.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <7481.1298907876@sss.pgh.pa.us>
Permalink:  ../7481.1298907876@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7481.1298907876@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, swingi@gmail.com
  Subject: Re: BUG #5902: pl/pgsql plans are not invalidated on discard all
  In-Reply-To: <7481.1298907876@sss.pgh.pa.us>
  References: <201102281409.p1SE9vcS050393@wwwmaster.postgresql.org> <7481.1298907876@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