Re: stored procedure performance - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: stored procedure performance
Date
Msg-id 92CFEAC3-0F93-4A73-B372-49E1EE3B54A8@myrealbox.com
Whole thread Raw
In response to stored procedure performance  (Rick Gigger <rick@alpinenetworking.com>)
List pgsql-general
On Dec 14, 2005, at 11:38 , Rick Gigger wrote:

> What actually fixes it is to run it a while and made sure there is
> a bunch of data there (even if it is deleted and not visible to
> anything) and run vacuum analyze.  Then recreate the stored
> procedure.  Then run the stored procedure.

What happens if you just run vacuum analyze before running the stored
procedure (i.e., skipping the recreate the stored procedure step)?
Running vacuum analyze (or at least just analyze) helps keep the
statistics used by the query planner up to date. Recreating the
function might just be a red herring.

Michael Glaesemann
grzm myrealbox com




pgsql-general by date:

Previous
From: Rick Gigger
Date:
Subject: stored procedure performance
Next
From: Tom Lane
Date:
Subject: Re: "incomplete startup packet" on SGI