pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgreSQL PITR - more doubts
4+ messages / 3 participants
[nested] [flat]
* PostgreSQL PITR - more doubts
@ 2010-07-12 11:23 Jayadevan M <Jayadevan.Maymala@ibsplc.com>
0 siblings, 1 reply; 4+ messages in thread
From: Jayadevan M @ 2010-07-12 11:23 UTC (permalink / raw)
To: pgsql-general@postgresql.org; 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."
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: PostgreSQL PITR - more doubts
@ 2010-07-12 11:38 Jesper Krogh <jesper@krogh.cc>
parent: Jayadevan M <Jayadevan.Maymala@ibsplc.com>
0 siblings, 1 reply; 4+ messages in thread
From: Jesper Krogh @ 2010-07-12 11:38 UTC (permalink / raw)
To: pgsql-performance
On 2010-07-12 13:23, Jayadevan M wrote:
> 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 ?
>
Yes, It starts out form "where it needs to". Assuming you
did a pg_start_backup() before you did your base backup?
--
Jesper
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: PostgreSQL PITR - more doubts
@ 2010-07-12 12:04 Jayadevan M <Jayadevan.Maymala@ibsplc.com>
parent: Jesper Krogh <jesper@krogh.cc>
0 siblings, 1 reply; 4+ messages in thread
From: Jayadevan M @ 2010-07-12 12:04 UTC (permalink / raw)
To: Jesper Krogh <jesper@krogh.cc>; +Cc: pgsql-performance; pgsql-performance-owner@postgresql.org
> Yes, It starts out form "where it needs to". Assuming you
>did a pg_start_backup() before you did your base backup?
Thanks. I did.
It uses files like 0000000B00000000000000D9.00000020.backupto get the
necessary information?
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."
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: PostgreSQL PITR - more doubts
@ 2010-07-12 12:28 Kevin Grittner <Kevin.Grittner@wicourts.gov>
parent: Jayadevan M <Jayadevan.Maymala@ibsplc.com>
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Grittner @ 2010-07-12 12:28 UTC (permalink / raw)
To: Jayadevan M <Jayadevan.Maymala@ibsplc.com>; Jesper Krogh <jesper@krogh.cc>; +Cc: pgsql-performance; pgsql-performance-owner@postgresql.org
Jayadevan M <Jayadevan.Maymala@ibsplc.com> wrote:
>> Yes, It starts out form "where it needs to". Assuming you
>> did a pg_start_backup() before you did your base backup?
>
> Thanks. I did.
> It uses files like 0000000B00000000000000D9.00000020.backupto get
> the necessary information?
Yeah, since it's a text file, you can easily have a look at what is
stored there. It's based on when pg_start_backup and pg_stop_backup
were run.
-Kevin
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-07-12 12:28 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-07-12 11:23 PostgreSQL PITR - more doubts Jayadevan M <Jayadevan.Maymala@ibsplc.com>
2010-07-12 11:38 ` Jesper Krogh <jesper@krogh.cc>
2010-07-12 12:04 ` Jayadevan M <Jayadevan.Maymala@ibsplc.com>
2010-07-12 12:28 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
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