|
|
|
@ -1107,13 +1107,12 @@ do_promote(void) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Use two different kinds of promotion file so we can understand |
|
|
|
|
* the difference between smart and fast promotion. |
|
|
|
|
* For 9.3 onwards, use fast promotion as the default option. |
|
|
|
|
* Promotion with a full checkpoint is still possible by writing |
|
|
|
|
* a file called "promote", e.g. |
|
|
|
|
* snprintf(promote_file, MAXPGPATH, "%s/promote", pg_data); |
|
|
|
|
*/ |
|
|
|
|
if (shutdown_mode >= FAST_MODE) |
|
|
|
|
snprintf(promote_file, MAXPGPATH, "%s/fast_promote", pg_data); |
|
|
|
|
else |
|
|
|
|
snprintf(promote_file, MAXPGPATH, "%s/promote", pg_data); |
|
|
|
|
snprintf(promote_file, MAXPGPATH, "%s/fast_promote", pg_data); |
|
|
|
|
|
|
|
|
|
if ((prmfile = fopen(promote_file, "w")) == NULL) |
|
|
|
|
{ |
|
|
|
@ -1778,7 +1777,7 @@ do_help(void) |
|
|
|
|
" [-o \"OPTIONS\"]\n"), progname); |
|
|
|
|
printf(_(" %s reload [-D DATADIR] [-s]\n"), progname); |
|
|
|
|
printf(_(" %s status [-D DATADIR]\n"), progname); |
|
|
|
|
printf(_(" %s promote [-D DATADIR] [-s] [-m PROMOTION-MODE]\n"), progname); |
|
|
|
|
printf(_(" %s promote [-D DATADIR] [-s]\n"), progname); |
|
|
|
|
printf(_(" %s kill SIGNALNAME PID\n"), progname); |
|
|
|
|
#if defined(WIN32) || defined(__CYGWIN__) |
|
|
|
|
printf(_(" %s register [-N SERVICENAME] [-U USERNAME] [-P PASSWORD] [-D DATADIR]\n" |
|
|
|
@ -1817,10 +1816,6 @@ do_help(void) |
|
|
|
|
printf(_(" fast quit directly, with proper shutdown\n")); |
|
|
|
|
printf(_(" immediate quit without complete shutdown; will lead to recovery on restart\n")); |
|
|
|
|
|
|
|
|
|
printf(_("\nPromotion modes are:\n")); |
|
|
|
|
printf(_(" smart promote after performing a checkpoint\n")); |
|
|
|
|
printf(_(" fast promote quickly without waiting for checkpoint completion\n")); |
|
|
|
|
|
|
|
|
|
printf(_("\nAllowed signal names for kill:\n")); |
|
|
|
|
printf(" ABRT HUP INT QUIT TERM USR1 USR2\n"); |
|
|
|
|
|
|
|
|
|