Unix Technical Forum

WAL copying includes vacuum, reindex, etc?

This is a discussion on WAL copying includes vacuum, reindex, etc? within the pgsql Admins forums, part of the PostgreSQL category; --> When running WAL backups and warm-standby restores (we're currently on PG 8.2), do the vacuumlo changes, vacuum, analyze and ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 08:18 AM
David Wall
 
Posts: n/a
Default WAL copying includes vacuum, reindex, etc?

When running WAL backups and warm-standby restores (we're currently on
PG 8.2), do the vacuumlo changes, vacuum, analyze and reindex type
commands get pushed through WAL files to the backup? Or will the backup
database not have these maintenance items done?

Thanks,
David

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 08:18 AM
Simon Riggs
 
Posts: n/a
Default Re: WAL copying includes vacuum, reindex, etc?

On Tue, 2008-01-15 at 09:19 -0800, David Wall wrote:

> When running WAL backups and warm-standby restores (we're currently on
> PG 8.2), do the vacuumlo changes, vacuum, analyze and reindex type
> commands get pushed through WAL files to the backup? Or will the backup
> database not have these maintenance items done?


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. It's probably
good for peace of mind too, but it's a long way from being an essential
requirement.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 08:18 AM
Tom Lane
 
Posts: n/a
Default Re: WAL copying includes vacuum, reindex, etc?

Simon Riggs <simon@2ndquadrant.com> 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:39 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com