Re: Resolving Index Bloat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, Greg.

I may look at running a scheduled REINDEX.

Sam


-----Original Message-----
From: pgsql-admin-owner@xxxxxxxxxxxxxx [mailto:pgsql-admin-owner@xxxxxxxxxxxxxx] On Behalf Of Greg Williamson
Sent: Tuesday, 20 November 2012 10:11 AM
To: pgsql-admin@xxxxxxxxxxxxxx
Subject: Re:  Resolving Index Bloat

Samuel --



>________________________________
> From: Samuel Stearns <SStearns@xxxxxxxxxxxxxxxx>
>To: "pgsql-admin@xxxxxxxxxxxxxx" <pgsql-admin@xxxxxxxxxxxxxx>
>Sent: Monday, November 19, 2012 1:59 PM
>Subject:  Resolving Index Bloat
> 
>
><...>
>
>Any ideas on how to resolve?
> 


I have custody of one database that is fairly small but subjected to lots of updated, inserts and deletes, and that database shows bloat that we have to knock down hourly or performance tanks.

This is on postgres 9.1 so I am not sure how much translates to earlier versions.

We ran ""REINDEX" hourly for a while; we currently use a hand rolled script that reindexes each regular index and does a dance to reindex primary keys and constraints. I could email it to you but as I said, not sure how much would work.

The straight REINDEX did work 99% of the time, with very occasional reports of failures, never repeated. The hand rolled version is a bit safer and a little less intrusive.

HTH,

Greg Williamson


--
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux