Re: Incremental / Level -1 backup in PG

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Incremental / Level -1 backup in PG
Date: 2017-03-22 17:45:56
Message-ID: 9dfdbb9d-c00a-6266-5fbd-ac6f371ddb01@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/22/2017 10:34 AM, Rakesh Kumar wrote:
> When the PITR is far apart from the time of base backup (far apart as in, let us
> say 4 to 5 days), the first approach beats the second approach hands down. This
> coming from experience. Reason is simple. In the second approach every transaction
> (from the time of base backup) has to applied to roll-foward to PIT. In incremental backup,
> a block is only applied once, regardless of how many times it changed after the base backup.

note postgres' WAL archive is by block, not by transaction. also note
that postgres effectively does copy-on-write, since update's are treated
as insert+delete, so the same blocks aren't written over and over nearly
as much as they might be in the oracle storage model.

--
john r pierce, recycling bits in santa cruz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message rakeshkumar464 2017-03-22 18:11:06 Re: Incremental / Level -1 backup in PG
Previous Message Rakesh Kumar 2017-03-22 17:34:57 Re: Incremental / Level -1 backup in PG