Skip site navigation (1) Skip section navigation (2)

DISCARD ALL ; stored procedures

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: DISCARD ALL ; stored procedures
Date: 2011-01-06 20:20:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

  Looking at discard all, I was a bit suprised that 'DISCARD PLANS;'
  doesn't clear out cached stored procedures.  To be honest, that's one
  of the main reasons I'd see to use it.  I thought there had been some
  discussion in the archives related to invalidating stored procedure
  plans due to catalog or other changes, I would have thought it'd be
  possible to hook into that to do the same on a DISCARD PLANS;.

  Thoughts?  Is there an issue doing that?  It certainly seems like it'd
  be a lot better than what he current documentation requires:

  When necessary, the cache can be flushed by starting a fresh database

  Maybe we could use 'DISCARD PLPLANS;' or something, if people feel
  there needs to be a seperate way to clear those.




pgsql-hackers by date

Next:From: Robert HaasDate: 2011-01-06 20:32:29
Subject: Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE
Previous:From: Bruce MomjianDate: 2011-01-06 19:59:41
Subject: Re: psql expanded auto

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group