1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.7 1999/10/12 13:59:45 thomas Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.8 2000/03/26 07:04:54 tgl Exp $
3
3
Postgres documentation
4
4
-->
5
5
@@ -23,10 +23,9 @@ Postgres documentation
23
23
<date>1999-07-20</date>
24
24
</refsynopsisdivinfo>
25
25
<synopsis>
26
- postmaster [ -B <replaceable class="parameter">nBuffers</replaceable> ] [ -D <replaceable class="parameter">DataDir</replaceable> ] [ -i ] [ -l ]
27
- postmaster [ -B <replaceable class="parameter">nBuffers</replaceable> ] [ -D <replaceable class="parameter">DataDir</replaceable> ] [ -N <replaceable class="parameter">nBackends</replaceable> ] [ -S ]
28
- [ -d [ <replaceable class="parameter">DebugLevel</replaceable> ] [ -i ] [ -l ] [ -o <replaceable class="parameter">BackendOptions</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ]
29
- postmaster [ -n | -s ] ...
26
+ postmaster [ -B <replaceable class="parameter">nBuffers</replaceable> ] [ -D <replaceable class="parameter">DataDir</replaceable> ] [ -N <replaceable class="parameter">maxBackends</replaceable> ] [ -S ]
27
+ [ -d <replaceable class="parameter">DebugLevel</replaceable> ] [ -i ] [ -l ]
28
+ [ -o <replaceable class="parameter">BackendOptions</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ] [ -n | -s ]
30
29
</synopsis>
31
30
32
31
<refsect2 id="R2-APP-POSTMASTER-1">
@@ -44,11 +43,11 @@ postmaster [ -n | -s ] ...
44
43
<term>-B <replaceable class="parameter">nBuffers</replaceable></term>
45
44
<listitem>
46
45
<para>
47
- The number of shared-memory buffers for the
46
+ Sets the number of shared-memory disk buffers for the
48
47
<application>postmaster</application>
49
- to allocate and manage for the backend server processes that it
48
+ to allocate for use by the backend server processes that it
50
49
starts. This value defaults to 64 buffers, where each buffer is 8k bytes
51
- (or whatever BLCKSZ is set to in config.h).
50
+ (or whatever BLCKSZ is set to in src/include/ config.h).
52
51
</para>
53
52
</listitem>
54
53
</varlistentry>
@@ -71,15 +70,17 @@ postmaster [ -n | -s ] ...
71
70
</varlistentry>
72
71
73
72
<varlistentry>
74
- <term>-N <replaceable class="parameter">nBackends </replaceable></term>
73
+ <term>-N <replaceable class="parameter">maxBackends </replaceable></term>
75
74
<listitem>
76
75
<para>
77
- The maximum number of backend server processes that this postmaster
78
- is allowed to start. In the default configuration, this value
79
- is usually set
80
- to 32, and can be set as high as 1024 if your system will support that
81
- many processes. Both the default and upper limit values can be altered
82
- when building <productname>Postgres</productname> (see src/include/config.h).
76
+ Sets the maximum number of backend server processes that this postmaster
77
+ is allowed to start. By default, this value is 32, but it can be set
78
+ as high as 1024 if your system will support that many processes.
79
+ (Note that -B is required to be at least twice -N, so you'll need to
80
+ increase -B if you increase -N.)
81
+ Both the default and upper limit values for -N can be altered
82
+ when building <productname>Postgres</productname>
83
+ (see src/include/config.h).
83
84
</para>
84
85
</listitem>
85
86
</varlistentry>
@@ -90,31 +91,34 @@ postmaster [ -n | -s ] ...
90
91
<para>
91
92
Specifies that the <application>postmaster</application>
92
93
process should start up in silent mode. That is, it will disassociate
93
- from the user's (controlling) tty and start its own process group.
94
- This should not be used in combination with debugging options because
95
- any messages printed to standard output and standard error are
96
- discarded.
94
+ from the user's (controlling) tty, start its own process group, and
95
+ redirect its standard output and standard error to
96
+ <filename>/dev/null</filename>.
97
+ </para>
98
+ <para>
99
+ <emphasis>Note</emphasis> that using this switch makes it very
100
+ difficult to troubleshoot problems, since all tracing and logging
101
+ output that would normally be generated by this postmaster and its
102
+ child backends will be discarded.
97
103
</para>
98
104
</listitem>
99
105
</varlistentry>
100
106
101
107
<varlistentry>
102
- <term>-d [ <replaceable class="parameter">DebugLevel</replaceable> ] </term>
108
+ <term>-d <replaceable class="parameter">DebugLevel</replaceable></term>
103
109
<listitem>
104
110
<para>
105
- This argument <replaceable class="parameter">DebugLevel</replaceable>
106
- determines the amount of debugging output the backend servers will
111
+ Determines the amount of debugging output the backend servers will
107
112
produce.
108
113
If <replaceable class="parameter">DebugLevel</replaceable>
109
- is one, the postmaster will trace all connection traffic,
110
- and nothing else.
111
- For levels two and higher,
112
- debugging is turned on in the backend process and the postmaster
113
- displays more information,
114
+ is one, the postmaster will trace all connection traffic.
115
+ Levels two and higher turn on increasing amounts of debug output
116
+ from the backend processes, and the postmaster
117
+ displays more information
114
118
including the backend environment and process traffic.
115
- Note that if no file is specified for backend servers to
116
- send their debugging output then this output will appear on the
117
- controlling tty of their parent <application>postmaster</application>.
119
+ Note that unless the postmaster's standard output and standard error
120
+ are redirected into a log file, all this output will appear on the
121
+ controlling tty of the <application>postmaster</application>.
118
122
</para>
119
123
</listitem>
120
124
</varlistentry>
@@ -123,9 +127,9 @@ postmaster [ -n | -s ] ...
123
127
<term>-i</term>
124
128
<listitem>
125
129
<para>
126
- This enables TCP/IP or Internet domain socket communication .
127
- Without this option, only local Unix domain socket communication is
128
- possible .
130
+ Allows clients to connect via TCP/IP ( Internet domain) connections .
131
+ Without this option, only local Unix domain socket connections are
132
+ accepted .
129
133
</para>
130
134
</listitem>
131
135
</varlistentry>
@@ -134,9 +138,9 @@ postmaster [ -n | -s ] ...
134
138
<term>-l</term>
135
139
<listitem>
136
140
<para>
137
- This enables SSL socket communication . The <option>-i</option> option
141
+ Enables secure connections using SSL . The <option>-i</option> option
138
142
is also required.
139
- You have to have compiled with SSL enabled to use this option.
143
+ You must have compiled with SSL enabled to use this option.
140
144
</para>
141
145
</listitem>
142
146
</varlistentry>
@@ -147,7 +151,7 @@ postmaster [ -n | -s ] ...
147
151
<para>
148
152
The
149
153
<literal>postgres</literal>
150
- options specified in
154
+ option(s) specified in
151
155
<replaceable class="parameter">BackendOptions</replaceable>
152
156
are passed to all backend server processes started by this
153
157
<application>postmaster</application>.
@@ -180,8 +184,8 @@ postmaster [ -n | -s ] ...
180
184
</para>
181
185
182
186
<para>
183
- A few command line options are available for debugging in the case
184
- when a backend dies abnormally.
187
+ Two additional command line options are available for debugging problems
188
+ that cause a backend to die abnormally.
185
189
These options control the behavior of the
186
190
<application>postmaster</application> in this situation, and
187
191
<emphasis>neither option is intended for use in
@@ -204,10 +208,9 @@ postmaster [ -n | -s ] ...
204
208
<listitem>
205
209
<para>
206
210
<application>postmaster</application>
207
- will not reinitialize shared data structures. A knowledgable system
208
- programmer can then use the
209
- <application>shmemdoc</application>
210
- program to examine shared memory and semaphore state.
211
+ will not reinitialize shared data structures. A knowledgeable system
212
+ programmer can then use a debugger
213
+ to examine shared memory and semaphore state.
211
214
</para>
212
215
</listitem>
213
216
</varlistentry>
@@ -262,7 +265,7 @@ semget: No space left on device
262
265
<para>
263
266
If you see this message, you should run the
264
267
<application>ipcclean</application>
265
- command. After doing this , try starting
268
+ command. After doing so , try starting
266
269
<application>postmaster</application>
267
270
again. If this still doesn't work, you probably need to configure
268
271
your kernel for shared memory and semaphores as described in the
@@ -277,7 +280,7 @@ semget: No space left on device
277
280
You may be able to postpone
278
281
reconfiguring your kernel by decreasing -B to reduce
279
282
<productname>Postgres</productname>' shared memory
280
- consumption, or by reducing -N to reduce Postgres' semaphore
283
+ consumption, and/ or by reducing -N to reduce Postgres' semaphore
281
284
consumption.
282
285
</para>
283
286
</tip>
@@ -291,10 +294,10 @@ StreamServerPort: cannot bind to port
291
294
</computeroutput></term>
292
295
<listitem>
293
296
<para>
294
- If you see this message, you should be certain that there is no other
295
- <application>postmaster</application>
296
- process already running. The easiest way to determine this is by
297
- using the command
297
+ If you see this message, you should make certain that there is no
298
+ other <application>postmaster</application>
299
+ process already running on the same port number . The easiest way to
300
+ determine this is by using the command
298
301
<programlisting>
299
302
% ps -ax | grep postmaster
300
303
</programlisting>
@@ -416,8 +419,8 @@ or its alternative form
416
419
417
420
will prevent <application>postmaster</application>
418
421
from freeing the system resources (e.g., shared memory and semaphores)
419
- that it holds before dying. This prevents you from having to deal with
420
- the problem with shared memory described earlier.
422
+ that it holds before dying. Use <literal>SIGTERM</literal> instead
423
+ to avoid having to clean up manually (as described earlier) .
421
424
</para>
422
425
423
426
<para>
@@ -450,8 +453,7 @@ or its alternative form
450
453
</para>
451
454
452
455
<para>
453
- To start <application>postmaster</application> with a specific port
454
- and executable name:
456
+ To start <application>postmaster</application> with a specific port:
455
457
456
458
<programlisting>
457
459
% nohup postmaster -p 1234 &
0 commit comments