From: Matthew Hagerty <matthew@venux.net>
To: pgsql-sql@postgreSQL.org
Subject: Deleting indexes before vacuum?
Date: Fri, 19 Nov 1999 20:03:57 -0500
Message-ID: <4.1.19991119195147.00a16ef0@mail.venux.net> (raw)
Greetings,
I read a post sometime back where someone said their normal routine for
running a vacuum was to delete the indexes first, then recreate them after
the vacuum. Is this necessary? If the indexes are gone does vacuum
analyze still make sense?
I am concerned about this because I never removed the indexes prior to
vacuum, but today I executed this simple query:
select note_id from appnotes where note_id=6068;
note_id
-------
17768
(1 row)
This was rather alarming, so I deleted all the indexes, ran vacuum,
recreated the indexes. Now the query works:
select note_id from appnotes where note_id=6068;
note_id
-------
6068
(1 row)
What are the general rules about running vacuum, frequency of use, etc.?
I am running pg-6.4 (I know it needs an update) on this particular server
and 6.5.x on others.
Thanks,
Matthew Hagerty
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: matthew@venux.net
Subject: Re: Deleting indexes before vacuum?
In-Reply-To: <4.1.19991119195147.00a16ef0@mail.venux.net>
References: <4.1.19991119195147.00a16ef0@mail.venux.net>
* 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