Re: WAL restoration is not happening completely - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: WAL restoration is not happening completely
Date
Msg-id c9a040c0-9f60-5ac3-3b3e-bf2d3196ca9d@2ndquadrant.com
Whole thread Raw
In response to Re: WAL restoration is not happening completely  (rajan <vgmonnet@gmail.com>)
List pgsql-admin
On 11/18/16 6:17 AM, rajan wrote:
> One thing I missed to update is that the Source(master) machine I was
> running is switched off and on everyday. It may have caused any disruption
> in the WAL files?

Well, the point of the WAL is to preserve data integrity in case of
crashes.  So, no, that should normally not cause problems.

> And one more question, The WAL files are created as 16MB segments, that is
> obvious. But I do not know when the file is completely written. Is it like,
> a file is created and then written till 16MB or 16MB data segment is
> directly written at once.

It is written in smaller chunks and then archived or rotated when the 16
MB are full.

--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-admin by date:

Previous
From: Achilleas Mantzios
Date:
Subject: Effect of archive_mode , archive_command when set on the standby
Next
From: Tomasz Ziss
Date:
Subject: Oracle Logical Standby equivalent in PostgreSQL