From: | Dennis Gearon <gearond(at)fireserve(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | Vivek Khera <khera(at)kcilink(dot)com> |
Subject: | Re: database speed |
Date: | 2003-10-31 19:53:01 |
Message-ID: | 3FA2BD9D.4050602@fireserve.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Vivek Khera wrote:
>>>>>>"DM" == Doug McNaught <doug(at)mcnaught(dot)org> writes:
>>>>>>
>>>>>>
>
>DM> The index bloat problem can occur when you have a an indexed SERIAL
>DM> column whose value always increases, and you delete older rows on a
>DM> regular basis. VACUUM recycles the row storage, but the index never
>DM> shrinks.
>
>I get this on tables which are updated a lot, even if I don't do any
>mass deletes of older rows. The indexes on other columns also bloat
>rapidly on some tables. It is a significant problem, especially since
>reindex locks the tables for significant amounts of time.
>
>
>
Is ist possible for a trigger to fork off a 'reindex' command and the
trigger terminates leaving the reindex running?
Using PL/PGSQL?
If a counter were kept in some table for each row, and after a certain
amount of updates/deletes, reindex were run on an automatic, more often
time frequency?
From | Date | Subject | |
---|---|---|---|
Next Message | Dennis Gearon | 2003-10-31 20:14:49 | COPY |
Previous Message | Dann Corbit | 2003-10-31 19:51:38 | Re: INSERT performance |