pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin Long <justinlong@strategicnetwork.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Optimizing Query
Date: Tue, 06 Mar 2001 10:31:48 -0500
Message-ID: <5525.983892708@sss.pgh.pa.us> (raw)
In-Reply-To: <5.0.2.1.0.20010306091755.03723ea0@mail.strategicnetwork.org>
References: <5.0.2.1.0.20010305165854.03114e48@mail.strategicnetwork.org>
	<20010305224029.A22983@ilse.nl>
	<5.0.2.1.0.20010305165854.03114e48@mail.strategicnetwork.org>
	<5.0.2.1.0.20010306091755.03723ea0@mail.strategicnetwork.org>

Justin Long <justinlong@strategicnetwork.org> writes:
> Wow. I can't believe the difference. It didn't take too long. I'll set up a 
> script in my etc/cron.weekly to run it... would there be any benefit to 
> doing a vacuum analyze nightly?

Depends.  A nightly vacuum is probably good practice, but you could skip
the analyze part if your data statistics (such as column min and max
values) don't change much.

			regards, tom lane



view thread (12+ messages)

Message-ID: <5525.983892708@sss.pgh.pa.us>
Permalink:  ../5525.983892708@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5525.983892708@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, justinlong@strategicnetwork.org
  Subject: Re: Optimizing Query
  In-Reply-To: <5525.983892708@sss.pgh.pa.us>
  References: <5.0.2.1.0.20010305165854.03114e48@mail.strategicnetwork.org> <20010305224029.A22983@ilse.nl> <5.0.2.1.0.20010306091755.03723ea0@mail.strategicnetwork.org> <5525.983892708@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