PostgreSQL PITR - more doubts - Mailing list pgsql-performance

From Jayadevan M
Subject PostgreSQL PITR - more doubts
Date
Msg-id OFC2981E2C.FBD7D986-ON6525775E.003DEF04-6525775E.003E99D3@ibsplc.com
Whole thread Raw
Responses Re: PostgreSQL PITR - more doubts  (Jesper Krogh <jesper@krogh.cc>)
List pgsql-performance
Hello all,
One doubt about how PostgreSQL PITR works. Let us say I have all the
archived WALs for the past week with
archive_command = 'cp -i %p /home/postgres/archive/%f </dev/null'
I took a base backup last night. If I try to recover the server today
after
copying the base backup from yesterday and providing
restore_command = 'cp /home/postgres/archive/%f %p'
does PostgreSQL go through all the past week's archived WALS or
it can figure out that the base backup is from yesterday, so skip
a large number of archived WALs and start only from file xxx ?
Either way, are there ways to speed up the restore process?
Regards,
Jayadevan





DISCLAIMER:

"The information in this e-mail and any attachment is intended only for
the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or any
attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."






pgsql-performance by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: now() gives same time within the session
Next
From: Jesper Krogh
Date:
Subject: Re: PostgreSQL PITR - more doubts