pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Almeida do Lago <teolupus@gmail.com>
To: 'Morus Walter' <morus.walter@tanto.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Online Backup and WAL archives
Date: Tue, 1 Feb 2005 11:26:13 -0200
Message-ID: <001001c50861$9cc84e30$e883f40a@br.gedasgrp> (raw)
In-Reply-To: <16895.32035.914311.612690@tanto-xipolis.de>

You may need to recreate some indexes:

"Operations on non-B-tree indexes (hash, R-tree, and GiST indexes) are not
presently WAL-logged, so replay will not update these index types. The
recommended workaround is to manually REINDEX each such index after
completing a recovery operation."


Best Regards,
Bruno Almeida do Lago
 

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Morus Walter
Sent: Tuesday, February 01, 2005 10:59 AM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Online Backup and WAL archives

Hi,

I'm currently considering to use postgresql 8.0 online backups.

The documentation says 
' To make use of this backup, you will need to keep around all the 
WAL segment files generated at or after the starting time of the backup. '

Now I'm wondering how much of these WAL segment files do I really need
in order to recover the databases to a consistent state.

Let's say I cannot write the WAL segments to tape dynamically when they
are archived. Then a complete disk failure would mean, that I loose WAL 
segments also.
Therefore I would like to save a minimum number of WAL segments at or
after the online backup that allows recovery.
Is that possible? How would I decide how much of the WAL I need?

Of course I could recover to the state of database at about the time of the 
backup only, but it would be a consistent state at least.

Or should I use the previous online backup plus all WAL segements up to
the current backup?

I expect the online backup to faster on recovery than an SQL dump, since
the latter would imply recreation of indexes during recovery.
Therefore I would prefer to use online backups.

Morus


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings




view thread (10+ messages)  latest in thread

Message-ID: <001001c50861$9cc84e30$e883f40a@br.gedasgrp>
Permalink:  ../001001c50861$9cc84e30$e883f40a@br.gedasgrp/
Also on:    postgresql.org/message-id/001001c50861$9cc84e30$e883f40a@br.gedasgrp

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: teolupus@gmail.com, morus.walter@tanto.de
  Subject: Re: Online Backup and WAL archives
  In-Reply-To: <001001c50861$9cc84e30$e883f40a@br.gedasgrp>
  References: <16895.32035.914311.612690@tanto-xipolis.de> <001001c50861$9cc84e30$e883f40a@br.gedasgrp>

* 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