From: | Igor Neyman <ineyman(at)perceptron(dot)com> |
---|---|
To: | John Scalia <jayknowsunix(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: 9.2 documentation/configuration question |
Date: | 2014-12-02 21:03:16 |
Message-ID: | A76B25F2823E954C9E45E32FA49D70ECC21DB2B4@mail.corp.perceptron.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of John Scalia
Sent: Tuesday, December 02, 2014 3:00 PM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] 9.2 documentation/configuration question
Hi All,
I've been asked to assist another group in our company and their db configuration is a little confusing to me. The database is not replicated, but it is running WAL archiving. I've been looking at http://www.postgresql.org/docs/9.2/static/wal-configuration.html and my confusion regards the 4th paragraph:
"The server's checkpointer process automatically performs a checkpoint every so often. A checkpoint is created every checkpoint_segments log segments, or every checkpoint_timeout seconds, whichever comes first. The default settings are 3 segments and 300 seconds (5 minutes), respectively. In cases where no WAL has been written since the previous checkpoint, new checkpoints will be skipped even if checkpoint_timeout has passed. If WAL archiving is being used and you want to put a lower limit on how often files are archived in order to bound potential data loss, you should adjust archive_timeout parameter rather than the checkpoint parameters..."
So, are docs saying that checkpoint_timeout is ignored if you have a value for archive_timeout or is it still used? This server currently has:
checkpoint_segments=32
checkpoint_timeout = 5min #default
archive_timeout=3600
and I'm not sure these make sense together in light of this paragraph.
--
Jay
No, documentation says that even if WAL was not written, WAL archive will be created on archive_timeout, in your case at least once per hour.
Regards,
Igor Neyman
From | Date | Subject | |
---|---|---|---|
Next Message | David G Johnston | 2014-12-02 21:42:45 | Re: 9.2 documentation/configuration question |
Previous Message | John Scalia | 2014-12-02 19:59:57 | 9.2 documentation/configuration question |