Re: Fast promotion, loose ends - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Fast promotion, loose ends
Date
Msg-id CA+U5nML-z5wywt-Lm8Ma-ruH9dj-8YrvKFOwFNXyeLx_3riq6A@mail.gmail.com
Whole thread Raw
In response to Re: Fast promotion, loose ends  (Shaun Thomas <sthomas@optionshouse.com>)
Responses Re: Fast promotion, loose ends
List pgsql-hackers
On 22 April 2013 16:09, Shaun Thomas <sthomas@optionshouse.com> wrote:
> On 04/22/2013 02:58 AM, Simon Riggs wrote:
>
>> So, to initiate promotion, you can create a file called
>> $DATADIR/fast_promote or $DATADIR/promote
>
>
> Pardon my naiveté, but could it also be an option to read the method from
> the promotion file?
>
> echo "slow" > /my/promotion/path
>
> That would work without any default naming scheme, and only incurs a read on
> the file-handle.

We could do that and a similar mechanism existed in pg_standby, but
was removed in 9.0.

Given where we are and the shape of the code I'd rather not do that.

--Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Fast promotion, loose ends
Next
From: Robert Haas
Date:
Subject: Re: event trigger API documentation?