Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3c59a9e3
Commit
3c59a9e3
authored
Sep 04, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring references to ipcclean in sync with reality.
parent
309401a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
27 deletions
+28
-27
doc/src/sgml/ref/ipcclean.sgml
doc/src/sgml/ref/ipcclean.sgml
+25
-23
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/ipc.c
+3
-4
No files found.
doc/src/sgml/ref/ipcclean.sgml
View file @
3c59a9e3
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/ipcclean.sgml,v 1.
4 2001/09/03 12:57:50
petere Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/ipcclean.sgml,v 1.
5 2001/09/04 00:22:34
petere Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -28,35 +28,36 @@ Postgres documentation
...
@@ -28,35 +28,36 @@ Postgres documentation
<refsect1 id="R1-APP-IPCCLEAN-1">
<refsect1 id="R1-APP-IPCCLEAN-1">
<title>Description</title>
<title>Description</title>
<para>
<para>
<application>ipcclean</application>
<command>ipcclean</command> removes all shared memory segments and
cleans up shared memory and semaphore space from aborted backends by
semaphore sets owned by the current user. It is intended to be
deleting all instances owned by user <literal>postgres</literal>.
used for cleaning up after a crashed
Only the DBA
<productname>PostgreSQL</productname> server (<xref
should execute this program as it can cause bizarre behavior (i.e.,
linkend="app-postmaster">). Note that immediately restarting the
crashes) if run during multi-user execution. This program should be
server will also clean up shared memory and semaphores, so this
executed if messages such as
command is of little real utility.
<computeroutput>
semget: No space left on device
</computeroutput>
are encountered when starting up the
<application>postmaster</application> or the backend server.
</para>
</para>
<para>
<para>
If this command is executed while <application>postmaster</application>
Only the database administrator should execute this program as it
is running, the shared memory and semaphores allocated by the
can cause bizarre behavior (i.e., crashes) if run during multiuser
<application>postmaster</application>
execution. If this command is executed while a
will be deleted. This will result in a general failure of the
<application>postmaster</application> is running, the shared memory
backend servers started by that
and semaphores allocated by the
<application>postmaster</application> will be deleted. This will
result in a general failure of the backend servers started by that
<application>postmaster</application>.
<application>postmaster</application>.
</para>
</para>
</refsect1>
<refsect1>
<title>Notes</title>
<para>
<para>
This script is a hack, but in the many years since it was written, no
This script is a hack, but in the many years since it was written,
one has come up with an equally effective and portable solution.
no one has come up with an equally effective and portable solution.
Suggestions are welcome.
Since the <application>postmaster</application> can now clean up by
itself, it is unlikely that <command>ipcclean</command> will be
improved upon in the future.
</para>
</para>
<para>
<para>
...
@@ -66,6 +67,7 @@ semget: No space left on device
...
@@ -66,6 +67,7 @@ semget: No space left on device
Therefore, it may not work on your particular OS.
Therefore, it may not work on your particular OS.
</para>
</para>
</refsect1>
</refsect1>
</refentry>
</refentry>
<!-- Keep this comment at the end of the file
<!-- Keep this comment at the end of the file
...
...
src/backend/storage/ipc/ipc.c
View file @
3c59a9e3
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.6
7 2001/05/08 19:00:26 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.6
8 2001/09/04 00:22:34 petere
Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -596,9 +596,8 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, uint32 size, int permission)
...
@@ -596,9 +596,8 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, uint32 size, int permission)
"2. The requested shared memory segment was too small for your system.
\n
"
"2. The requested shared memory segment was too small for your system.
\n
"
" You need to lower the SHMMIN parameter in your kernel.
\n\n
"
" You need to lower the SHMMIN parameter in your kernel.
\n\n
"
"3. The requested shared memory segment already exists but is of the
\n
"
"3. The requested shared memory segment already exists but is of the
\n
"
" wrong size. This is most likely the case if an old version of
\n
"
" wrong size. This can occur if some other application on your system
\n
"
" PostgreSQL crashed and didn't clean up. The `ipcclean' utility
\n
"
" is also using shared memory.
\n\n
"
" can be used to remedy this.
\n\n
"
"The PostgreSQL Administrator's Guide contains more information about
\n
"
"The PostgreSQL Administrator's Guide contains more information about
\n
"
"shared memory configuration.
\n\n
"
,
"shared memory configuration.
\n\n
"
,
size
);
size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment