Re: REINDEX disk space requirements

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

 



David Schnur escribió:

> I'm a developer on a product that includes a built-in PostgreSQL DB;
> currently 8.3.5.  One of our tables is very active - it can see in the tens
> of millions of rows inserted and deleted per day.  Generally speaking, new
> rows arrive throughout the day, and older rows from previous days are
> periodically deleted.  A task runs VACUUM ANALYZE after those deletions, to
> keep space available.

Immediately after the deletions, or is there some delay?  Keep in mind
that rows cannot be reclaimed until the oldest transaction that was open
when they were deleted is finished.  So if you vacuum too quickly, the
deleted rows may not be deleted.  It's better if you insert some delay
between delete and vacuum, the duration of which is dependent on the
duration of your transactions.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

-- 
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