Re: Fast promotion, loose ends

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Fast promotion, loose ends
Дата
Msg-id 51779DA6.2070307@vmware.com
обсуждение исходный текст
Ответ на Re: Fast promotion, loose ends  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Fast promotion, loose ends
Список pgsql-hackers
On 24.04.2013 11:46, Simon Riggs wrote:
> On 24 April 2013 09:32, Heikki Linnakangas<hlinnakangas@vmware.com>  wrote:
>
>>> pg_ctl already checks versions, so I don't see the point.
>>
>>
>> The point is, if you do "pgsql93/bin/pg_ctl -D $92DATADIR promote", it will
>> create fast_promote file and return success. But it won't actually promote
>> the server. I think that's bad.
>>
>> If pg_ctl already has a check against that, fine, but I don't think it does.
>> Please make sure you test that before applying.
>
> If it doesn't check, that is not the only thing that would be broken.
> The original commit of pg_ctl promote would also be broken.

Yeah, it would've been good if the "pg_ctl promote" patch would've added 
a version check. Nevertheless, don't you think it would be good to avoid 
changing the filename of the "promote" file, so that we don't have any 
more such breakage? I don't see any advantage in changing it.

- Heikki



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Fast promotion, loose ends
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Failing start-up archive recovery at Standby mode in PG9.2.4