Re: Vacuuming static tables.

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Vacuuming static tables.
Date: 2006-05-10 17:59:34
Message-ID: 200605101059.34589@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On May 10, 2006 10:54 am, "Daniel T. Staal" <DStaal(at)usa(dot)net> wrote:
> Then the question is why doesn't running it twice in a row speed it up?
> (When I plug in *exactly* the same values.)

Yeah, I don't understand that. You might see what else is running on the
database at the same time as the problem occurs? When you vacuum, do you
vacuum only this table, or is the vacuum perhaps fixing another problem
that is coincidental to causing this query to be slow?

I cannot think how else vacuum could make any difference to a rarely updated
table, though.

Post the output of 2 subsequent explain analyzes the next time the problem
shows up, and then run the vacuum and post a third. I'm sure someone
smarter than me will spot something.

--
"It's not a war on drugs, it's a war on personal freedom. Keep that in mind
at all times."

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Sean Davis 2006-05-10 18:01:47 Re: Vacuuming static tables.
Previous Message Daniel T. Staal 2006-05-10 17:54:17 Re: Vacuuming static tables.