Re: Proper way to restore from a basebackup without the WAL-files? - Mailing list pgsql-admin

From John Scalia
Subject Re: Proper way to restore from a basebackup without the WAL-files?
Date
Msg-id CABzCKRDruzicqCLCZn36O4HqxuWonmB7WU1W-c5NwmOCakyvNQ@mail.gmail.com
Whole thread Raw
In response to Proper way to restore from a basebackup without the WAL-files?  (Gustav Karlsson <gustav.karlsson@bekk.no>)
Responses Re: Proper way to restore from a basebackup without the WAL-files?
Re: Proper way to restore from a basebackup without the WAL-files?
List pgsql-admin
If you absolutely must use the pg_basebackup as your source and I'm assuming you have a tarball without any of WAL files, you could expand the tarball into you data directory, and use pg_resetxlog to "fool" the master into starting up. I only say "fool" as it just builds you a blank WAL file which this system can use as its integrity check and properly start.
--
Jay

On Tue, Dec 15, 2015 at 11:35 AM, Gustav Karlsson <gustav.karlsson@bekk.no> wrote:
Hi,

What is the proper way start a new master from a basebackup when you do not have the WAL-files?

We are using postgresql 9.4.

Regards,
Gustav Karlsson



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

pgsql-admin by date:

Previous
From: Gustav Karlsson
Date:
Subject: Proper way to restore from a basebackup without the WAL-files?
Next
From: Gustav Karlsson
Date:
Subject: Re: Proper way to restore from a basebackup without the WAL-files?