@@ -1107,13 +1107,12 @@ do_promote(void)
11071107 }
11081108
11091109 /*
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);
11121114 */
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 );
11171116
11181117 if ((prmfile = fopen (promote_file , "w" )) == NULL )
11191118 {
@@ -1778,7 +1777,7 @@ do_help(void)
17781777 " [-o \"OPTIONS\"]\n" ), progname );
17791778 printf (_ (" %s reload [-D DATADIR] [-s]\n" ), progname );
17801779 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 );
17821781 printf (_ (" %s kill SIGNALNAME PID\n" ), progname );
17831782#if defined(WIN32 ) || defined(__CYGWIN__ )
17841783 printf (_ (" %s register [-N SERVICENAME] [-U USERNAME] [-P PASSWORD] [-D DATADIR]\n"
@@ -1817,10 +1816,6 @@ do_help(void)
18171816 printf (_ (" fast quit directly, with proper shutdown\n" ));
18181817 printf (_ (" immediate quit without complete shutdown; will lead to recovery on restart\n" ));
18191818
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-
18241819 printf (_ ("\nAllowed signal names for kill:\n" ));
18251820 printf (" ABRT HUP INT QUIT TERM USR1 USR2\n" );
18261821
0 commit comments