1999-07-22 17:09:15 +02:00
|
|
|
<!--
|
2005-01-04 04:58:16 +01:00
|
|
|
$PostgreSQL: pgsql/doc/src/sgml/ref/ipcclean.sgml,v 1.11 2005/01/04 03:58:16 tgl Exp $
|
2001-12-08 04:24:40 +01:00
|
|
|
PostgreSQL documentation
|
1999-07-22 17:09:15 +02:00
|
|
|
-->
|
|
|
|
|
|
|
|
<refentry id="APP-IPCCLEAN">
|
|
|
|
<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>
|
2005-01-04 04:58:16 +01:00
|
|
|
<refpurpose>remove shared memory and semaphores from a failed <productname>PostgreSQL</productname> server</refpurpose>
|
1999-07-22 17:09:15 +02:00
|
|
|
</refnamediv>
|
|
|
|
|
2003-08-31 19:32:24 +02:00
|
|
|
<indexterm zone="app-ipcclean">
|
|
|
|
<primary>ipcclean</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
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>
|
2001-09-04 02:22:34 +02:00
|
|
|
<command>ipcclean</command> removes all shared memory segments and
|
|
|
|
semaphore sets owned by the current user. It is intended to be
|
|
|
|
used for cleaning up after a crashed
|
|
|
|
<productname>PostgreSQL</productname> server (<xref
|
|
|
|
linkend="app-postmaster">). Note that immediately restarting the
|
|
|
|
server will also clean up shared memory and semaphores, so this
|
|
|
|
command is of little real utility.
|
1999-07-22 17:09:15 +02:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2001-09-04 02:22:34 +02:00
|
|
|
Only the database administrator should execute this program as it
|
|
|
|
can cause bizarre behavior (i.e., crashes) if run during multiuser
|
2003-03-24 15:32:51 +01:00
|
|
|
execution. If this command is executed while a server is running,
|
|
|
|
the shared memory and semaphores allocated by that server will be
|
|
|
|
deleted, which would have rather severe consequences for that
|
|
|
|
server.
|
1999-07-22 17:09:15 +02:00
|
|
|
</para>
|
2001-09-04 02:22:34 +02:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Notes</title>
|
1999-07-22 17:09:15 +02:00
|
|
|
|
|
|
|
<para>
|
2001-09-04 02:22:34 +02:00
|
|
|
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.
|
2003-03-24 15:32:51 +01:00
|
|
|
Since the <command>postmaster</command> can now clean up by
|
2001-09-04 02:22:34 +02:00
|
|
|
itself, it is unlikely that <command>ipcclean</command> will be
|
|
|
|
improved upon in the future.
|
1999-07-22 17:09:15 +02:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2005-01-04 04:58:16 +01:00
|
|
|
The script makes assumptions about the output format of the
|
2003-03-24 15:32:51 +01:00
|
|
|
<command>ipcs</command>
|
1999-07-22 17:09:15 +02:00
|
|
|
utility which may not be true across different operating systems.
|
2005-01-04 04:58:16 +01:00
|
|
|
Therefore, it may not work on your particular OS. It's wise to
|
|
|
|
look at the script before trying it.
|
1999-07-22 17:09:15 +02:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2001-09-04 02:22:34 +02:00
|
|
|
|
1999-07-22 17:09:15 +02:00
|
|
|
</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:
|
|
|
|
-->
|