Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown)

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown)
Дата
Msg-id
20190927195215.GA8650@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
Two pg_rewind patches (auto generate recovery conf and ensure clean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Michael Paquier <michael@paquier.xyz>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Michael Paquier <michael@paquier.xyz>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Thomas Munro <thomas.munro@gmail.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Thomas Munro <thomas.munro@gmail.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Michael Paquier <michael@paquier.xyz>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera from 2ndQuadrant <alvherre@alvh.no-ip.org>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Laurenz Albe <laurenz.albe@cybertec.at>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) a.kondratov@postgrespro.ru
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alexey Kondratov <a.kondratov@postgrespro.ru>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alexey Kondratov <a.kondratov@postgrespro.ru>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Michael Paquier <michael@paquier.xyz>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alexey Kondratov <a.kondratov@postgrespro.ru>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Michael Paquier <michael@paquier.xyz>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alexey Kondratov <a.kondratov@postgrespro.ru>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Michael Paquier <michael@paquier.xyz>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alexey Kondratov <a.kondratov@postgrespro.ru>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Michael Paquier <michael@paquier.xyz>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alexey Kondratov <a.kondratov@postgrespro.ru>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown) Paul Guo <pguo@pivotal.io>
On 2019-Sep-27, Paul Guo wrote:

> I'm using --no-ensure-shutdown in the new version unless there are better
> suggestions.

That sounds sufficiently good.  I pushed this patch, after fixing a few
smallish problems, such as an assertion failure because of the
terminating \n in the error message when "postgres --single" fails
(which I tested by introducing a typo in the command).  I also removed
the short option, because I doubt that this option is useful enough to
warrant using up such an important shorthand (Maybe if it had been
-\ or -% or -& I would have let it through, since I doubt anybody would
have wanted to use those for anything else).  But if somebody disagrees,
they can send a patch to restore it, and we can then discuss the merits
of individual chars to use.

I also added quotes to DEVNULL, because we do that everywhere.  Maybe
there exists a system somewhere that requires this ... !!??

Finally, I split out the command in the error message in case it fails.

Thanks.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: David Steele
Дата:
FAQ