Re: WAL copying includes vacuum, reindex, etc?

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

 



Simon Riggs <simon@xxxxxxxxxxxxxxx> writes:
> All of those commands produce WAL for critical changes to data blocks,
> so those are passed through correctly.

> Hint bits are not set following recovery, so a full database VACUUM may
> help later performance, depends upon your access patterns.

That's only partially true.  Full-page images in WAL will propagate hint
bits, so in practice you could expect that only about one checkpoint
cycle's worth of hint information is missing.  If you'd been running
with full_page_writes = off then this doesn't hold, and in that case
I'd agree that a forced vacuum might be worth the trouble.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

[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