pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Monnerie <michael.monnerie@it-management.at>
Cc: pgsql-admin@postgresql.org
Subject: Re: online tape backup
Date: Tue, 13 Feb 2007 10:34:39 -0500
Message-ID: <29978.1171380879@sss.pgh.pa.us> (raw)
In-Reply-To: <200702131027.02556@zmi.at>
References: <200702091951.14100.ejortegau@cable.net.co>
	<200702131027.02556@zmi.at>

Michael Monnerie <michael.monnerie@it-management.at> writes:
> From what I understand, if I run a vacuum, the WAL logs will be
> enormous, as they do not simply store the vacuum command itself, but
> every single operation done on the db.
> If that's true, running vacuum before the base backup could be better,
> as there are less WAL logs to store, making the backup smaller, right?

You're suffering from a fundamental misconception about the nature of WAL.
Vacuum doesn't "shrink WAL", and neither does anything else; WAL is a
history of every action ever taken in the database, and so a vacuum will
just add a bunch more to that history.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <29978.1171380879@sss.pgh.pa.us>
Permalink:  ../29978.1171380879@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29978.1171380879@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael.monnerie@it-management.at
  Subject: Re: online tape backup
  In-Reply-To: <29978.1171380879@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox