diff -r ab32ed8164e7 doc/src/sgml/config.sgml --- a/doc/src/sgml/config.sgml Mon Dec 07 15:10:09 2009 +0100 +++ b/doc/src/sgml/config.sgml Mon Dec 07 17:12:32 2009 +0100 @@ -54,9 +54,10 @@ One way to set these parameters is to edit the file postgresql.confpostgresql.conf, - which is normally kept in the data directory. (initdb - installs a default copy there.) An example of what this file might look - like is: + which is normally kept in the data directory. + (database cluster initialization + process installs a default copy there.) + An example of what this file might look like is: # This is a comment log_connections = yes @@ -365,8 +366,8 @@ Determines the maximum number of concurrent connections to the database server. The default is typically 100 connections, but might be less if your kernel settings will not support it (as - determined during initdb). This parameter can - only be set at server start. + determined during database cluster + initialization). This parameter can only be set at server start. @@ -747,7 +748,8 @@ Sets the amount of memory the database server uses for shared memory buffers. The default is typically 32 megabytes (32MB), but might be less if your kernel settings will - not support it (as determined during initdb). + not support it (as determined during database + cluster initialization). This setting must be at least 128 kilobytes. (Non-default values of BLCKSZ change the minimum.) However, settings significantly higher than the minimum are usually needed @@ -4267,10 +4269,10 @@ keywords US, NonEuro, and NonEuropean are synonyms for MDY. See for more information. The - built-in default is ISO, MDY, but - initdb will initialize the - configuration file with a setting that corresponds to the - behavior of the chosen lc_time locale. + built-in default is ISO, MDY, but + database cluster initialization + will initialize the configuration file with a setting that corresponds + to the behavior of the chosen lc_time locale. @@ -4476,9 +4478,9 @@ specifying the configuration. See for further information. The built-in default is pg_catalog.simple, but - initdb will initialize the - configuration file with a setting that corresponds to the - chosen lc_ctype locale, if a configuration + database cluster initialization + will initialize the configuration file with a setting that corresponds + to the chosen lc_ctype locale, if a configuration matching that locale can be identified. @@ -5240,8 +5242,9 @@ Allows modification of the structure of system tables. - This is used by initdb. - This parameter can only be set at server start. + This is used by database cluster + initialization process. This parameter can only be set at server + start. diff -r ab32ed8164e7 doc/src/sgml/manage-ag.sgml --- a/doc/src/sgml/manage-ag.sgml Mon Dec 07 15:10:09 2009 +0100 +++ b/doc/src/sgml/manage-ag.sgml Mon Dec 07 17:12:32 2009 +0100 @@ -107,10 +107,9 @@ Since you need to be connected to the database server in order to execute the CREATE DATABASE command, the question remains how the first database at any given - site can be created. The first database is always created by the - initdb command when the data storage area is - initialized. (See .) This - database is called + site can be created. The first database is always created when + the data storage area is initialized. (See .) + This database is called postgres.postgres So to create the first ordinary database you can connect to postgres. @@ -119,8 +118,8 @@ A second database, template1,template1 - is also created by - initdb. Whenever a new database is created within the + is also created during database cluster + initialization. Whenever a new database is created within the cluster, template1 is essentially cloned. This means that any changes you make in template1 are propagated to all subsequently created databases. Therefore it is @@ -196,11 +195,11 @@ template1, that is, only the standard objects predefined by your version of PostgreSQL. template0 - should never be changed after initdb. By instructing - CREATE DATABASE to copy template0 instead - of template1, you can create a virgin user - database that contains none of the site-local additions in - template1. This is particularly handy when restoring a + should never be changed after database cluster + initialization. By instructing CREATE DATABASE to copy + template0 instead of template1, you can create a + virgin user database that contains none of the site-local additions + in template1. This is particularly handy when restoring a pg_dump dump: the dump script should be restored in a virgin database to ensure that one recreates the correct contents of the dumped database, without any conflicts with objects that @@ -453,8 +452,9 @@ - Two tablespaces are automatically created by initdb. The - pg_global tablespace is used for shared system catalogs. The + Two tablespaces are automatically created during + database cluster initialization. + The pg_global tablespace is used for shared system catalogs. The pg_default tablespace is the default tablespace of the template1 and template0 databases (and, therefore, will be the default tablespace for other databases as well, unless diff -r ab32ed8164e7 doc/src/sgml/ref/initdb.sgml --- a/doc/src/sgml/ref/initdb.sgml Mon Dec 07 15:10:09 2009 +0100 +++ b/doc/src/sgml/ref/initdb.sgml Mon Dec 07 17:12:32 2009 +0100 @@ -106,6 +106,12 @@ More details can be found in . + + Note: The initdb might be invoked by + pg_ctl initdb and initdb cannot be in + default path on a PostgreSQL installations. + + @@ -314,6 +320,7 @@ + diff -r ab32ed8164e7 doc/src/sgml/ref/pg_ctl-ref.sgml --- a/doc/src/sgml/ref/pg_ctl-ref.sgml Mon Dec 07 15:10:09 2009 +0100 +++ b/doc/src/sgml/ref/pg_ctl-ref.sgml Mon Dec 07 17:12:32 2009 +0100 @@ -12,7 +12,7 @@ pg_ctl - start, stop, or restart a PostgreSQL server + init, start, stop, or restart a PostgreSQL server @@ -23,6 +23,13 @@ pg_ctl + init[db] + -D datadir + -s + -o options + + + pg_ctl start -w -t seconds @@ -105,7 +112,8 @@ Description - pg_ctl is a utility for starting, + pg_ctl is a utility for initialiazing + PostgreSQL database cluster, starting, stopping, or restarting the PostgreSQL backend server (), or displaying the status of a running server. Although the server can be started @@ -116,6 +124,14 @@ + or creates a new + PostgreSQL database cluster. A database + cluster is a collection of databases that are managed by a single + server instance. This options invokes + command. See for more details. + + + In mode, a new server is launched. The server is started in the background, and standard input is attached to /dev/null. The standard output and standard diff -r ab32ed8164e7 doc/src/sgml/runtime.sgml --- a/doc/src/sgml/runtime.sgml Mon Dec 07 15:10:09 2009 +0100 +++ b/doc/src/sgml/runtime.sgml Mon Dec 07 17:12:32 2009 +0100 @@ -72,13 +72,16 @@ default, although locations such as /usr/local/pgsql/data or /var/lib/pgsql/data are popular. To initialize a - database cluster, use the command ,initdb which is + database cluster, use the command or ,initdb + pg_ctl which is installed with PostgreSQL. The desired file system location of your database cluster is indicated by the option, for example: $ initdb -D /usr/local/pgsql/data +or +$ pg_ctl -D /usr/local/pgsql/data initdb Note that you must execute this command while logged into the PostgreSQL user account, which is diff -r ab32ed8164e7 doc/src/sgml/xfunc.sgml --- a/doc/src/sgml/xfunc.sgml Mon Dec 07 15:10:09 2009 +0100 +++ b/doc/src/sgml/xfunc.sgml Mon Dec 07 17:12:32 2009 +0100 @@ -1353,8 +1353,8 @@ Normally, all internal functions present in the - server are declared during the initialization of the database cluster (initdb), - but a user could use CREATE FUNCTION + server are declared during the initialization + of the database cluster, but a user could use CREATE FUNCTION to create additional alias names for an internal function. Internal functions are declared in CREATE FUNCTION with language name internal. For instance, to