Re: pg_basebackup for streaming base backups

Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>

From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Cc: Robert Haas <robertmhaas@gmail.com>, Bruce Momjian <bruce@momjian.us>, Magnus Hagander <magnus@hagander.net>, Simon Riggs <simon@2ndquadrant.com>, Tom Lane <tgl@sss.pgh.pa.us>, Peter Eisentraut <peter_e@gmx.net>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2011-01-20T20:20:58Z
Lists: pgsql-hackers
On 20.01.2011 22:15, Dimitri Fontaine wrote:
> Robert Haas<robertmhaas@gmail.com>  writes:
>> Sending them a signal seems like a promising approach, but the trick
>> is guaranteeing that they've actually acted on it before you start the
>> checkpoint.
>
> How much using a latch here would help?  Or be overkill?

A latch doesn't give you an acknowledgment from the backends that 
they've received and acted on the guc change. You could use it as a 
building block to construct that, though.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com