From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Reduce checkpoints and WAL traffic on low activity database serv |
Date: | 2011-11-02 15:39:07 |
Message-ID: | E1RLcuB-0002Bz-0q@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
Reduce checkpoints and WAL traffic on low activity database server
Previously, we skipped a checkpoint if no WAL had been written since
last checkpoint, though this does not appear in user documentation.
As of now, we skip a checkpoint until we have written at least one
enough WAL to switch the next WAL file. This greatly reduces the
level of activity and number of WAL messages generated by a very
low activity server. This is safe because the purpose of a checkpoint
is to act as a starting place for a recovery, in case of crash.
This patch maintains minimal WAL volume for replay in case of crash,
thus maintaining very low crash recovery time.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/18fb9d8d21a28caddb72c7ffbdd7b96d52ff9724
Modified Files
--------------
src/backend/access/transam/xlog.c | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2011-11-02 16:15:57 | Re: pgsql: Reduce checkpoints and WAL traffic on low activity database serv |
Previous Message | Simon Riggs | 2011-11-02 14:28:08 | pgsql: Refactor xlog.c to create src/backend/postmaster/startup.c |
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2011-11-02 15:56:54 | DeArchiver process |
Previous Message | Chris Redekop | 2011-11-02 15:29:56 | Re: Hot Backup with rsync fails at pg_clog if under load |