full vacuum really slows down query

From: Jason Long <mailing(dot)list(at)supernovasoftware(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: full vacuum really slows down query
Date: 2008-06-04 22:02:46
Message-ID: 48471106.3050107@supernovasoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a query that takes 2 sec if I run it from a freshly restored
dump. If I run a full vacuum on the database it then takes 30 seconds.

Would someone please comment as to why I would see a 15x slow down by
only vacuuming the DB? Reindexing does not help, and a full vacuum was
run just prior to the dump.

I run a full vacuum every night.

I am using 8.3.1

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ralph Smith 2008-06-04 22:12:49 Re: Script errors on run
Previous Message Jeff Davis 2008-06-04 22:00:09 Re: functions, transactions, key violations