Search Postgresql Archives

Re: stored procedure performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux