Re: archive_keepalive_command

From: Greg Smith <greg(at)2ndQuadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: archive_keepalive_command
Date: 2011-12-19 14:06:54
Message-ID: 4EEF44FE.5030001@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 12/19/2011 08:17 AM, Robert Haas wrote:
> If you want keepalives, why use log shipping rather than SR? Implementing a
> really-high-latency method of passing protocol messages through the
> archive seems like a complex solution to a non-problem

The problem being addressed is "how can people using archiving compute
time-based lag usefully?" Thinking about an answer to that question
that made sense for SR drove us toward keepalive timestamp sharing.
This is trying to introduce a mechanism good enough to do the same thing
for regular archive recovery.

In the archiving case, the worst case waiting to trip you up is always
the one where not enough activity happened to generate a new WAL file
yet. If people want lag to move correctly in that case anyway, a
message needs to be transferred from archiver to recovery system. Simon
is suggesting that we do that via shipping a new small file in that
case, rather than trying to muck with putting it into the WAL data or
something like that. It's a bit hackish, but a) no more hackish than
people are used to for PITR, and b) in a way that avoids touching
database code in the critical path for SR.

This idea might eliminate the last of the reasons I was speculating on
for adding more timestamps into the WAL stream.

--
Greg Smith 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2011-12-19 14:14:09 Re: Page Checksums
Previous Message Robert Haas 2011-12-19 13:17:44 Re: archive_keepalive_command