On 22 April 2013 16:09, Shaun Thomas <stho...@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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers