Re: Forcing wal rotation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Forcing wal rotation
Date
Msg-id 21144.1152893371@sss.pgh.pa.us
Whole thread Raw
In response to Forcing wal rotation  ("Florian G. Pflug" <fgp@phlo.org>)
Responses Re: Forcing wal rotation  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
"Florian G. Pflug" <fgp@phlo.org> writes:
> I've now thought about how to fix that without doing that rather crude rsync-pg_xlog-hack.
> I've read through the code, and learned that wal-segments are expected to have a specific size -
> thus rotating them "early" is not that easy.

Simon was working on a patch for this at the code sprint; I think it's
submitted to -patches already.  Explicitly filling the segment as you
propose would be really bad for performance.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Have find_static skip main() functions.
Next
From: "Dave Page"
Date:
Subject: Re: Forcing wal rotation