pg_ctl: change default shutdown mode from 'smart' to 'fast'
authorBruce Momjian
Tue, 31 Mar 2015 15:46:27 +0000 (11:46 -0400)
committerBruce Momjian
Tue, 31 Mar 2015 15:46:27 +0000 (11:46 -0400)
Retain the order of the options in the documentation.

doc/src/sgml/ref/pg_ctl-ref.sgml
src/bin/pg_ctl/pg_ctl.c

index 29f882bd76e2dfe21257809d80a4324edb98928d..2df65db0bdde136199122480829d02ff3eb490fe 100644 (file)
@@ -173,11 +173,11 @@ PostgreSQL documentation
    In  mode, the server that is running in
    the specified data directory is shut down.  Three different
    shutdown methods can be selected with the 
-   option.  Smart mode (the default) waits for all active
+   option.  Smart mode waits for all active
    clients to disconnect and any online backup to finish.
    If the server is in hot standby, recovery and streaming replication
    will be terminated once all clients have disconnected.
-   Fast mode does not wait for clients to disconnect and
+   Fast mode (the default) does not wait for clients to disconnect and
    will terminate an online backup in progress.  All active transactions are
    rolled back and clients are forcibly disconnected, then the
    server is shut down.  Immediate mode will abort
@@ -292,7 +292,7 @@ PostgreSQL documentation
         Specifies the shutdown mode.  mode
         can be smartfast, or
         immediate, or the first letter of one of
-        these three.  If this is omitted, smart is used.
+        these three.  If this is omitted, fast is used.
        
       
      
index 8202633d05602dfedd09936394ffc424004c7411..ea6db8c26b5b37e7d76ecfded97164ef96640f93 100644 (file)
@@ -79,7 +79,7 @@ static bool do_wait = false;
 static bool wait_set = false;
 static int wait_seconds = DEFAULT_WAIT;
 static bool silent_mode = false;
-static ShutdownMode shutdown_mode = SMART_MODE;
+static ShutdownMode shutdown_mode = FAST_MODE;
 static int sig = SIGTERM;      /* default */
 static CtlCommand ctl_command = NO_COMMAND;
 static char *pg_data = NULL;