1999-07-22 17:09:15 +02:00
|
|
|
<!--
|
2001-09-03 14:57:50 +02:00
|
|
|
$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/ipcclean.sgml,v 1.4 2001/09/03 12:57:50 petere Exp $
|
1999-07-22 17:09:15 +02:00
|
|
|
Postgres documentation
|
|
|
|
-->
|
|
|
|
|
|
|
|
<refentry id="APP-IPCCLEAN">
|
2000-11-12 00:01:45 +01:00
|
|
|
<docinfo>
|
|
|
|
<date>2000-11-11</date>
|
|
|
|
</docinfo>
|
|
|
|
|
1999-07-22 17:09:15 +02:00
|
|
|
<refmeta>
|
2000-11-12 00:01:45 +01:00
|
|
|
<refentrytitle id="APP-IPCCLEAN-TITLE"><application>ipcclean</application></refentrytitle>
|
|
|
|
<manvolnum>1</manvolnum>
|
1999-07-22 17:09:15 +02:00
|
|
|
<refmiscinfo>Application</refmiscinfo>
|
|
|
|
</refmeta>
|
2000-11-12 00:01:45 +01:00
|
|
|
|
1999-07-22 17:09:15 +02:00
|
|
|
<refnamediv>
|
2000-11-12 00:01:45 +01:00
|
|
|
<refname>ipcclean</refname>
|
2001-09-03 14:57:50 +02:00
|
|
|
<refpurpose>remove shared memory and semaphores from an aborted <productname>PostgreSQL</productname> server</refpurpose>
|
1999-07-22 17:09:15 +02:00
|
|
|
</refnamediv>
|
|
|
|
|
2000-11-12 00:01:45 +01:00
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>ipcclean</command>
|
|
|
|
</cmdsynopsis>
|
1999-07-22 17:09:15 +02:00
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1 id="R1-APP-IPCCLEAN-1">
|
2000-11-12 00:01:45 +01:00
|
|
|
<title>Description</title>
|
1999-07-22 17:09:15 +02:00
|
|
|
<para>
|
|
|
|
<application>ipcclean</application>
|
|
|
|
cleans up shared memory and semaphore space from aborted backends by
|
|
|
|
deleting all instances owned by user <literal>postgres</literal>.
|
|
|
|
Only the DBA
|
|
|
|
should execute this program as it can cause bizarre behavior (i.e.,
|
|
|
|
crashes) if run during multi-user execution. This program should be
|
|
|
|
executed if messages such as
|
|
|
|
|
|
|
|
<computeroutput>
|
|
|
|
semget: No space left on device
|
|
|
|
</computeroutput>
|
|
|
|
|
|
|
|
are encountered when starting up the
|
|
|
|
<application>postmaster</application> or the backend server.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If this command is executed while <application>postmaster</application>
|
|
|
|
is running, the shared memory and semaphores allocated by the
|
|
|
|
<application>postmaster</application>
|
|
|
|
will be deleted. This will result in a general failure of the
|
2000-10-05 21:48:34 +02:00
|
|
|
backend servers started by that
|
1999-07-22 17:09:15 +02:00
|
|
|
<application>postmaster</application>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
This script is a hack, but in the many years since it was written, no
|
|
|
|
one has come up with an equally effective and portable solution.
|
|
|
|
Suggestions are welcome.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The script makes assumption about the format of output of the
|
|
|
|
<application>ipcs</application>
|
|
|
|
utility which may not be true across different operating systems.
|
|
|
|
Therefore, it may not work on your particular OS.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:nil
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../reference.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:"/usr/lib/sgml/catalog"
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
-->
|