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

Commit3c59a9e

Browse files
committed
Bring references to ipcclean in sync with reality.
1 parent309401a commit3c59a9e

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

‎doc/src/sgml/ref/ipcclean.sgml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/ipcclean.sgml,v 1.4 2001/09/03 12:57:50 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/ipcclean.sgml,v 1.5 2001/09/04 00:22:34 petere Exp $
33
Postgres documentation
44
-->
55

@@ -28,35 +28,36 @@ Postgres documentation
2828
<refsect1 id="R1-APP-IPCCLEAN-1">
2929
<title>Description</title>
3030
<para>
31-
<application>ipcclean</application>
32-
cleans up shared memory and semaphore space from aborted backends by
33-
deleting all instances owned by user <literal>postgres</literal>.
34-
Only the DBA
35-
should execute this program as it can cause bizarre behavior (i.e.,
36-
crashes) if run during multi-user execution. This program should be
37-
executed if messages such as
38-
39-
<computeroutput>
40-
semget: No space left on device
41-
</computeroutput>
42-
43-
are encountered when starting up the
44-
<application>postmaster</application> or the backend server.
31+
<command>ipcclean</command> removes all shared memory segments and
32+
semaphore sets owned by the current user. It is intended to be
33+
used for cleaning up after a crashed
34+
<productname>PostgreSQL</productname> server (<xref
35+
linkend="app-postmaster">). Note that immediately restarting the
36+
server will also clean up shared memory and semaphores, so this
37+
command is of little real utility.
4538
</para>
4639

4740
<para>
48-
If this command is executed while <application>postmaster</application>
49-
is running, the shared memory and semaphores allocated by the
50-
<application>postmaster</application>
51-
will be deleted. This will result in a general failure of the
52-
backend servers started by that
41+
Only the database administrator should execute this program as it
42+
can cause bizarre behavior (i.e., crashes) if run during multiuser
43+
execution. If this command is executed while a
44+
<application>postmaster</application> is running, the shared memory
45+
and semaphores allocated by the
46+
<application>postmaster</application> will be deleted. This will
47+
result in a general failure of the backend servers started by that
5348
<application>postmaster</application>.
5449
</para>
50+
</refsect1>
51+
52+
<refsect1>
53+
<title>Notes</title>
5554

5655
<para>
57-
This script is a hack, but in the many years since it was written, no
58-
one has come up with an equally effective and portable solution.
59-
Suggestions are welcome.
56+
This script is a hack, but in the many years since it was written,
57+
no one has come up with an equally effective and portable solution.
58+
Since the <application>postmaster</application> can now clean up by
59+
itself, it is unlikely that <command>ipcclean</command> will be
60+
improved upon in the future.
6061
</para>
6162

6263
<para>
@@ -66,6 +67,7 @@ semget: No space left on device
6667
Therefore, it may not work on your particular OS.
6768
</para>
6869
</refsect1>
70+
6971
</refentry>
7072

7173
<!-- Keep this comment at the end of the file

‎src/backend/storage/ipc/ipc.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.67 2001/05/08 19:00:26 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.68 2001/09/0400:22:34 petere Exp $
1212
*
1313
* NOTES
1414
*
@@ -596,9 +596,8 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, uint32 size, int permission)
596596
"2. The requested shared memory segment was too small for your system.\n"
597597
" You need to lower the SHMMIN parameter in your kernel.\n\n"
598598
"3. The requested shared memory segment already exists but is of the\n"
599-
" wrong size. This is most likely the case if an old version of\n"
600-
" PostgreSQL crashed and didn't clean up. The `ipcclean' utility\n"
601-
" can be used to remedy this.\n\n"
599+
" wrong size. This can occur if some other application on your system\n"
600+
" is also using shared memory.\n\n"
602601
"The PostgreSQL Administrator's Guide contains more information about\n"
603602
"shared memory configuration.\n\n",
604603
size);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp