From: Kuba Ouhrabka <kuba@comgate.cz>
To: pgsql-performance@postgresql.org
Subject: cached plans in plpgsql
Date: Thu, 20 Oct 2005 16:07:22 +0200
Message-ID: <dj88aq$kme$1@news.hub.org> (raw)
Hi,
is there an easy way to flush all cached query plans in pl/pgsql
functions? I've long running sessions where data are changing and the
plans become inaccurate after a while. I can imagine something like
recreating all pl/pgsql functions. I can recreate them from sql source
files but I'd prefer recreating them inside the database without
accessing files outside. I can think only of one way - reconstructing
function source code from pg_proc and EXECUTEing it. But it's not the
cleanest solution (there isn't saved the actual source code anywhere so
there could be problems with quoting etc.). Can you see any other
possibility? How do you solve this problem? [And yes, I don't want to
re-connect...]
Thanks,
Kuba
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: kuba@comgate.cz
Subject: Re: cached plans in plpgsql
In-Reply-To: <dj88aq$kme$1@news.hub.org>
* 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