pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: galaxyshih@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13450: problem about applying point-in-time recovery
Date: Wed, 17 Jun 2015 09:30:29 +0000
Message-ID: <20150617093029.2737.2331@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      13450
Logged by:          Leo
Email address:      galaxyshih@gmail.com
PostgreSQL version: Unsupported/Unknown
Operating system:   Debian
Description:        

Hello, 

Recently, I am applying point-in-time recovery and I tried to combine it
with full backup(simply tar the whole data). However I encountered some
problems. Here is my scenario: 
T1: simply tar a base file(named b1)(/path/to/cluster_data, at this time, I
do not enable WAL)
T2: enable WAL (modify postgres.conf and restart postgres)
T3: tar a base file again (named b2)
T4, T5: insert some data to my database
T6: perform restore (untar the base, overwrite the files to
/path/to/cluster_data, create recover.conf if needed)

Everything is fine if I restore to T2-T5. But here is my problem: if I
restore to T1 first(untar b1 and overwrite the files to
/path/to/cluster_data), then I cannot successfully restore to T2-T5. I will
receive some message in the log: 

2015-06-15 20:57:44 GMT+8 LOG:  restored log file
"00000001000000000000002E.00000020.backup" from archive
2015-06-15 20:57:44 GMT+8 LOG:  restored log file "00000001000000000000002E"
from archive
2015-06-15 20:57:44 GMT+8 LOG:  unexpected pageaddr 0/2A000000 in log file
0, segment 46, offset 0
2015-06-15 20:57:44 GMT+8 LOG:  invalid checkpoint record
2015-06-15 20:57:44 GMT+8 FATAL:  could not locate required checkpoint
record
2015-06-15 20:57:44 GMT+8 HINT:  If you are not restoring from a backup, try
removing the file "/home/genie/db_mount_point/backup_label".
2015-06-15 20:57:44 GMT+8 LOG:  startup process (PID 30139) exited with exit
code 1
2015-06-15 20:57:44 GMT+8 LOG:  aborting startup due to startup process
failure

I do not know the problem exactly. Is that my way of applying it is
completely wrong? I thought that I could use these two ways of restore. When
I try to restore to T1, it should extract the files from b1. The same
procedure applies to restore T2 except the part of replaying the WALs. Can
somebody give me some suggestion, please.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)  latest in thread

Message-ID: <20150617093029.2737.2331@wrigleys.postgresql.org>
Permalink:  ../20150617093029.2737.2331@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20150617093029.2737.2331@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: galaxyshih@gmail.com
  Subject: Re: BUG #13450: problem about applying point-in-time recovery
  In-Reply-To: <20150617093029.2737.2331@wrigleys.postgresql.org>
  References: <20150617093029.2737.2331@wrigleys.postgresql.org>

* 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