Re: vacuum analyze slows sql query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: patrick ~ <sidsrr(at)yahoo(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: vacuum analyze slows sql query
Date: 2004-11-06 06:38:58
Message-ID: 26773.1099723138@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

patrick ~ <sidsrr(at)yahoo(dot)com> writes:
> PREPARE pkk_00 ( integer ) <the def of pkk_offer_has_pending_purc( integer )

This is what you want to do, but not quite like that. The PREPARE
determines the plan and so VACUUMing and re-EXECUTing is going to show
the same plan. What we need to look at is
- standing start
PREPARE pkk_00 ...
EXPLAIN ANALYZE EXECUTE pkk_00 ...
VACUUM ANALYZE;
PREPARE pkk_01 ...
EXPLAIN ANALYZE EXECUTE pkk_01 ...

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Allen Landsidel 2004-11-06 07:27:25 Re: Strange (?) Index behavior?
Previous Message patrick ~ 2004-11-06 06:18:50 Re: vacuum analyze slows sql query