Remove gratuitous references to postmaster program
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 26 Jan 2023 09:48:32 +0000 (10:48 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 26 Jan 2023 09:48:32 +0000 (10:48 +0100)
"postgres" has long been officially preferred over "postmaster" as the
name of the program to invoke to run the server.  Some example scripts
and code comments still used the latter.  Change those.

Discussion: https://www.postgresql.org/message-id/flat/ece84b69-8f94-8b88-925f-64207cb3a2f0@enterprisedb.com

contrib/start-scripts/freebsd
contrib/start-scripts/linux
src/port/path.c

index 3323237a54b4fca1dcd54b43657ad19f4589b287..ed4f9ba620350f842e7e7a4aa6123e44ab491ec4 100644 (file)
@@ -16,7 +16,7 @@ prefix=/usr/local/pgsql
 # Data directory
 PGDATA="/usr/local/pgsql/data"
 
-# Who to run the postmaster as, usually "postgres".  (NOT "root")
+# Who to run postgres as, usually "postgres".  (NOT "root")
 PGUSER=postgres
 
 # Where to keep a log file
@@ -27,14 +27,14 @@ PGLOG="$PGDATA/serverlog"
 # The path that is to be used for the script
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
-# What to use to start up the postmaster.  (If you want the script to wait
+# What to use to start up postgres.  (If you want the script to wait
 # until the server has started, you could use "pg_ctl start" here.)
-DAEMON="$prefix/bin/postmaster"
+DAEMON="$prefix/bin/postgres"
 
-# What to use to shut down the postmaster
+# What to use to shut down postgres
 PGCTL="$prefix/bin/pg_ctl"
 
-# Only start if we can find the postmaster.
+# Only start if we can find postgres.
 test -x $DAEMON ||
 {
    echo "$DAEMON not found"
index a7757162fc4b6978fd887ca058eed51b8470755f..ca01e96a62bfc8268c5172548d00f0f3492d83e7 100644 (file)
@@ -34,7 +34,7 @@ prefix=/usr/local/pgsql
 # Data directory
 PGDATA="/usr/local/pgsql/data"
 
-# Who to run the postmaster as, usually "postgres".  (NOT "root")
+# Who to run postgres as, usually "postgres".  (NOT "root")
 PGUSER=postgres
 
 # Where to keep a log file
@@ -59,16 +59,16 @@ PGLOG="$PGDATA/serverlog"
 # The path that is to be used for the script
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
-# What to use to start up the postmaster.  (If you want the script to wait
+# What to use to start up postgres.  (If you want the script to wait
 # until the server has started, you could use "pg_ctl start" here.)
-DAEMON="$prefix/bin/postmaster"
+DAEMON="$prefix/bin/postgres"
 
-# What to use to shut down the postmaster
+# What to use to shut down postgres
 PGCTL="$prefix/bin/pg_ctl"
 
 set -e
 
-# Only start if we can find the postmaster.
+# Only start if we can find postgres.
 test -x $DAEMON ||
 {
    echo "$DAEMON not found"
index 401a3243bc8e29cfd614452b555047a73f015952..65c7943fee1ec55765e6be884f31b448c4d4fec5 100644 (file)
@@ -651,7 +651,7 @@ dir_strcmp(const char *s1, const char *s2)
  * For example:
  *     target_path  = '/usr/local/share/postgresql'
  *     bin_path     = '/usr/local/bin'
- *     my_exec_path = '/opt/pgsql/bin/postmaster'
+ *     my_exec_path = '/opt/pgsql/bin/postgres'
  * Given these inputs, the common prefix is '/usr/local/', the tail of
  * bin_path is 'bin' which does match the last directory component of
  * my_exec_path, so we would return '/opt/pgsql/share/postgresql'