pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: patrick ~ <sidsrr@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: vacuum analyze slows sql query
Date: Sat, 06 Nov 2004 01:38:58 -0500
Message-ID: <26773.1099723138@sss.pgh.pa.us> (raw)
In-Reply-To: <20041106061850.5463.qmail@web52102.mail.yahoo.com>
References: <20041106061850.5463.qmail@web52102.mail.yahoo.com>

patrick ~ <sidsrr@yahoo.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



view thread (17+ messages)  latest in thread

Message-ID: <26773.1099723138@sss.pgh.pa.us>
Permalink:  ../26773.1099723138@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26773.1099723138@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, sidsrr@yahoo.com
  Subject: Re: vacuum analyze slows sql query
  In-Reply-To: <26773.1099723138@sss.pgh.pa.us>

* 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