Re: [GENERAL] Incremental / Level -1 backup in PG - Mailing list pgsql-general

From rakeshkumar464
Subject Re: [GENERAL] Incremental / Level -1 backup in PG
Date
Msg-id 1490206266771-5951343.post@n3.nabble.com
Whole thread Raw
In response to Re: [GENERAL] Incremental / Level -1 backup in PG  (John R Pierce <pierce@hogranch.com>)
List pgsql-general

>note postgres' WAL archive is by block, not by transaction.

My understanding is that only the first time a block is updated after a
checkpoint,
is the entire block is written to the WAL logs.  And for that
full_page_writes has to be set to ON.
The only other time PG writes entire block to the WAL is during the time of
backup regardless of full_page_writes setting.

AFAIK rest of the time, WAL takes only row changes.  Otherwise PG will be
generating large number
of WAL logs.

I hope I am right :-)

> 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.

Good point.



--
View this message in context: http://www.postgresql-archive.org/Incremental-Level-1-backup-in-PG-tp5951072p5951343.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: [GENERAL] Incremental / Level -1 backup in PG
Next
From: Toby Corkindale
Date:
Subject: [GENERAL] pg_last_xact_replay_timestamp() sometimes reports unlikely, very large delays