Re: Optimizing warm standby. Will this work? [PITR WAL] - Mailing list pgsql-general

From Richard Huxton
Subject Re: Optimizing warm standby. Will this work? [PITR WAL]
Date
Msg-id 45FF8EC8.3070806@archonet.com
Whole thread Raw
In response to Optimizing warm standby. Will this work? [PITR WAL]  ("Dhaval Shah" <dhaval.shah.m@gmail.com>)
List pgsql-general
Dhaval Shah wrote:
> The optimization step I am looking for is as follows, instead of doing
> a tar/gzip of the data directory, I am planning to do a pg_dumpall of
> the primary. That is, the new steps will be:
>
> 0. Ensure that no application connects to the db.
> 1. On the primary, do a pg_dumpall

> That way, I figure I do not have to move the entire data directory
> around. I just need the base schema and data contents. The question
> is, will the above setup work? Any gotchas?

Won't work - the WAL refers to disk blocks, not primary keys etc. You
need the actual disk files.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: "Dhaval Shah"
Date:
Subject: Unable to start postgres in recovery mode.
Next
From: "Albe Laurenz"
Date:
Subject: Re: Stored Procedure / function and their result