pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndQuadrant.com>
To: pgsql-admin@postgresql.org
Subject: Re: archive_timeout behavior (8.4.6)
Date: Mon, 02 May 2011 00:09:36 -0400
Message-ID: <4DBE2E80.50008@2ndQuadrant.com> (raw)
In-Reply-To: <4DB21BFA.4030800@consistentstate.com>
References: <4DB21BFA.4030800@consistentstate.com>

On 04/22/2011 08:23 PM, Brian Fehrle wrote:
> So long story short, if a cluster has zero activity, and 
> archive_timeout is not set to 0, when it reaches that timeout should 
> it generate a file, or just skip because it would be 100% empty?

You're right about what you've seen here, there is some logic in the 
WAL/checkpoint code that can avoid doing anything when the timeout hits, 
if there hasn't been any new WAL written since the last one.  That 
hasn't changed for a while now though (since I've been watching that 
part of the source code at least) so I'm not sure what differences 
between 8.4.6 and earlier 8.4 versions you think you've observed.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books




view thread (2+ messages)

Message-ID: <4DBE2E80.50008@2ndQuadrant.com>
Permalink:  ../4DBE2E80.50008@2ndQuadrant.com/
Also on:    postgresql.org/message-id/4DBE2E80.50008@2ndQuadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: greg@2ndQuadrant.com
  Subject: Re: archive_timeout behavior (8.4.6)
  In-Reply-To: <4DBE2E80.50008@2ndQuadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox