Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3871b69

Browse files
committed
Improve descriptions of postmaster switches.
1 parenta7b8de4 commit3871b69

File tree

1 file changed

+54
-52
lines changed

1 file changed

+54
-52
lines changed

‎doc/src/sgml/ref/postmaster.sgml

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
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 $
33
Postgres documentation
44
-->
55

@@ -23,10 +23,9 @@ Postgres documentation
2323
<date>1999-07-20</date>
2424
</refsynopsisdivinfo>
2525
<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 ]
3029
</synopsis>
3130

3231
<refsect2 id="R2-APP-POSTMASTER-1">
@@ -44,11 +43,11 @@ postmaster [ -n | -s ] ...
4443
<term>-B <replaceable class="parameter">nBuffers</replaceable></term>
4544
<listitem>
4645
<para>
47-
Thenumber of shared-memory buffers for the
46+
Sets thenumber of shared-memory disk buffers for the
4847
<application>postmaster</application>
49-
to allocateand manage for the backend server processes that it
48+
to allocatefor use by the backend server processes that it
5049
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 insrc/include/config.h).
5251
</para>
5352
</listitem>
5453
</varlistentry>
@@ -71,15 +70,17 @@ postmaster [ -n | -s ] ...
7170
</varlistentry>
7271

7372
<varlistentry>
74-
<term>-N <replaceable class="parameter">nBackends</replaceable></term>
73+
<term>-N <replaceable class="parameter">maxBackends</replaceable></term>
7574
<listitem>
7675
<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).
8384
</para>
8485
</listitem>
8586
</varlistentry>
@@ -90,31 +91,34 @@ postmaster [ -n | -s ] ...
9091
<para>
9192
Specifies that the <application>postmaster</application>
9293
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.
97103
</para>
98104
</listitem>
99105
</varlistentry>
100106

101107
<varlistentry>
102-
<term>-d[<replaceable class="parameter">DebugLevel</replaceable> ]</term>
108+
<term>-d <replaceable class="parameter">DebugLevel</replaceable></term>
103109
<listitem>
104110
<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
107112
produce.
108113
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
114118
including the backend environment and process traffic.
115-
Note thatif no file is specified for backend servers to
116-
send their debugging output then this output will appear on the
117-
controlling tty oftheir parent <application>postmaster</application>.
119+
Note thatunless 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 ofthe <application>postmaster</application>.
118122
</para>
119123
</listitem>
120124
</varlistentry>
@@ -123,9 +127,9 @@ postmaster [ -n | -s ] ...
123127
<term>-i</term>
124128
<listitem>
125129
<para>
126-
This enablesTCP/IPorInternet domain socket communication.
127-
Without this option, only local Unix domain socketcommunication is
128-
possible.
130+
Allows clients to connect viaTCP/IP(Internet domain) connections.
131+
Without this option, only local Unix domain socketconnections are
132+
accepted.
129133
</para>
130134
</listitem>
131135
</varlistentry>
@@ -134,9 +138,9 @@ postmaster [ -n | -s ] ...
134138
<term>-l</term>
135139
<listitem>
136140
<para>
137-
This enables SSL socket communication. The <option>-i</option> option
141+
Enables secure connections using SSL. The <option>-i</option> option
138142
is also required.
139-
Youhave to have compiled with SSL enabled to use this option.
143+
Youmust have compiled with SSL enabled to use this option.
140144
</para>
141145
</listitem>
142146
</varlistentry>
@@ -147,7 +151,7 @@ postmaster [ -n | -s ] ...
147151
<para>
148152
The
149153
<literal>postgres</literal>
150-
options specified in
154+
option(s) specified in
151155
<replaceable class="parameter">BackendOptions</replaceable>
152156
are passed to all backend server processes started by this
153157
<application>postmaster</application>.
@@ -180,8 +184,8 @@ postmaster [ -n | -s ] ...
180184
</para>
181185

182186
<para>
183-
A few command line options are available for debuggingin the case
184-
whena backenddies abnormally.
187+
Two additional command line options are available for debuggingproblems
188+
that causea backendto die abnormally.
185189
These options control the behavior of the
186190
<application>postmaster</application> in this situation, and
187191
<emphasis>neither option is intended for use in
@@ -204,10 +208,9 @@ postmaster [ -n | -s ] ...
204208
<listitem>
205209
<para>
206210
<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.
211214
</para>
212215
</listitem>
213216
</varlistentry>
@@ -262,7 +265,7 @@ semget: No space left on device
262265
<para>
263266
If you see this message, you should run the
264267
<application>ipcclean</application>
265-
command. After doingthis, try starting
268+
command. After doingso, try starting
266269
<application>postmaster</application>
267270
again. If this still doesn't work, you probably need to configure
268271
your kernel for shared memory and semaphores as described in the
@@ -277,7 +280,7 @@ semget: No space left on device
277280
You may be able to postpone
278281
reconfiguring your kernel by decreasing -B to reduce
279282
<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
281284
consumption.
282285
</para>
283286
</tip>
@@ -291,10 +294,10 @@ StreamServerPort: cannot bind to port
291294
</computeroutput></term>
292295
<listitem>
293296
<para>
294-
If you see this message, you shouldbe 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 shouldmake 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 byusing the command
298301
<programlisting>
299302
% ps -ax | grep postmaster
300303
</programlisting>
@@ -416,8 +419,8 @@ or its alternative form
416419

417420
will prevent <application>postmaster</application>
418421
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 memorydescribed earlier.
422+
that it holds before dying.Use <literal>SIGTERM</literal> instead
423+
to avoid having to clean up manually (asdescribed earlier).
421424
</para>
422425

423426
<para>
@@ -450,8 +453,7 @@ or its alternative form
450453
</para>
451454

452455
<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:
455457

456458
<programlisting>
457459
% nohup postmaster -p 1234 &

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp