From: Imre Oolberg <imre@auul.pri.ee>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Re: pg v. 8.4.5 misses objects and data after restoring from backup using wal
Date: Mon, 03 Jan 2011 23:06:09 +0200
Message-ID: <4D223A41.1060102@auul.pri.ee> (raw)
In-Reply-To: <24373.1294086266@sss.pgh.pa.us>
References: <AANLkTikY_XJ0Ok7bLGVxXXfGgenfnzJ4RnSiM_H40FCM@mail.gmail.com>
<4D2213EB.7090700@auul.pri.ee>
<42066935-6D27-46E3-8094-836D204816B7@elevated-dev.com>
<22500.1294080152@sss.pgh.pa.us>
<E486B5B1-EC5F-4615-8633-D89CF6665663@elevated-dev.com>
<22730.1294081008@sss.pgh.pa.us>
<4D222E45.2080701@auul.pri.ee>
<24373.1294086266@sss.pgh.pa.us>
Hi!
On 01/03/11 22:24, Tom Lane wrote:
> I wonder whether you're failing to copy the backup_label file as part of
> the base backup. The presence of that file is what tells the slave
> postmaster where it has to start recovering from.
>
> regards, tom lane
>
Thank you so much for your attention, i really need to learn reading
postgresql.org manuals, probably already a long time ago i learned from
somewhere that i need to delete backup_label file before starting up
wal-recoverying database and i did, as presented in my first mail
Restore went like this
1. mounted /mnt/backup/ under /var/lib/postgresql
2. removed backup_label
3. created recovery.conf with a line
restore_command = 'cp /data/backup/postgresql/archive-logs/%f %p'
4. emptied pg_xlog directory while having directory itself
5. started postgresql and it finishes accepting connections
Now everything works, in the process backup_label gets renamed
backup_label.old, thanks again for your attention! Still lucky it was
mistake in the recovery procedure having my backups made so far still
usable :)
Imre
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: imre@auul.pri.ee, tgl@sss.pgh.pa.us, scott_ribe@elevated-dev.com
Subject: Re: Re: pg v. 8.4.5 misses objects and data after restoring from backup using wal
In-Reply-To: <4D223A41.1060102@auul.pri.ee>
* 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