1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.46 2008/06/26 01:12:19 momjian Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.47 2009/12/10 06:32:28 petere Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -12,7 +12,7 @@ PostgreSQL documentation
12
12
13
13
<refnamediv>
14
14
<refname>pg_ctl</refname>
15
- <refpurpose>start, stop, or restart a <productname>PostgreSQL</productname> server</refpurpose>
15
+ <refpurpose>initialize, start, stop, or restart a <productname>PostgreSQL</productname> server</refpurpose>
16
16
</refnamediv>
17
17
18
18
<indexterm zone="app-pg-ctl">
@@ -22,6 +22,13 @@ PostgreSQL documentation
22
22
<refsynopsisdiv>
23
23
<cmdsynopsis>
24
24
25
+ <command>pg_ctl</command>
26
+ <arg choice="plain">init[db]</arg>
27
+ <arg>-s</arg>
28
+ <arg>-D <replaceable>datadir</replaceable></arg>
29
+ <arg>-o <replaceable>options</replaceable></arg>
30
+ <sbr>
31
+
25
32
<command>pg_ctl</command>
26
33
<arg choice="plain">start</arg>
27
34
<arg>-w</arg>
@@ -105,7 +112,8 @@ PostgreSQL documentation
105
112
<refsect1 id="app-pg-ctl-description">
106
113
<title>Description</title>
107
114
<para>
108
- <application>pg_ctl</application> is a utility for starting,
115
+ <application>pg_ctl</application> is a utility for initializing a
116
+ <productname>PostgreSQL</productname> database cluster, starting,
109
117
stopping, or restarting the <productname>PostgreSQL</productname>
110
118
backend server (<xref linkend="app-postgres">), or displaying the
111
119
status of a running server. Although the server can be started
@@ -115,6 +123,15 @@ PostgreSQL documentation
115
123
controlled shutdown.
116
124
</para>
117
125
126
+ <para>
127
+ The <option>init</option> or <option>initdb</option> mode creates a
128
+ new
129
+ <productname>PostgreSQL</productname> database cluster. A database
130
+ cluster is a collection of databases that are managed by a single
131
+ server instance. This mode invokes the <command>initdb</command>
132
+ command. See <xref linkend="app-initdb"> for details.
133
+ </para>
134
+
118
135
<para>
119
136
In <option>start</option> mode, a new server is launched. The
120
137
server is started in the background, and standard input is attached to
@@ -263,6 +280,12 @@ PostgreSQL documentation
263
280
option unless you are doing something unusual and get errors
264
281
that the <filename>postgres</filename> executable was not found.
265
282
</para>
283
+
284
+ <para>
285
+ In <literal>init</literal> mode, this option analogously
286
+ specifies the location of the <filename>initdb</filename>
287
+ executable.
288
+ </para>
266
289
</listitem>
267
290
</varlistentry>
268
291
@@ -542,9 +565,10 @@ Command line was:
542
565
<refsect1>
543
566
<title>See Also</title>
544
567
545
- <para>
546
- <xref linkend="app-postgres">
547
- </para>
568
+ <simplelist type="inline">
569
+ <member><xref linkend="app-initdb"></member>
570
+ <member><xref linkend="app-postgres"></member>
571
+ </simplelist>
548
572
</refsect1>
549
573
550
574
</refentry>
0 commit comments