Improve pg_ctl's message for shutdown after recovery.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 Jul 2024 17:48:58 +0000 (13:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 Jul 2024 17:48:58 +0000 (13:48 -0400)
commitcd85ae1114fedcce8602bca77b4557fe75165637
tree90da65ad1f85ccd89df19ef3a9a377113798e7d0
parent56c6be57af6bd1c7eb7dff50e5f169ced4ed3045
Improve pg_ctl's message for shutdown after recovery.

If pg_ctl tries to start the postmaster, but the postmaster shuts down
because it completed a point-in-time recovery, pg_ctl used to report
a message that indicated a failure.  It's not really a failure, so
instead say "server shut down because of recovery target settings".

Zhao Junwang, Crisp Lee, Laurenz Albe

Discussion: https://postgr.es/m/CAGHPtV7GttPZ-HvxZuYRy70jLGQMEm5=LQc4fKGa=J74m2VZbg@mail.gmail.com
src/bin/pg_ctl/pg_ctl.c