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