control flow never reaches the event loop (thanks to a runaway stored
control flow never reaches the event loop (thanks to a runaway stored
procedure), the server stops responding to any signal, and
procedure), the server stops responding to any signal, and
can be only killed with SIGKILL (this signal can not be ignored).
can be only killed with SIGKILL (this signal can not be ignored).
</para>
</section>
<sectionxml:id="tarantar">
<title>Utility <code>tarantar</code></title>
<para>
The tarantar utility program will create new snapshots by reading existing
snapshots and write-ahead-log (xlog) files. Thus it differs from <olinktargetptr="save-snapshot"/>,
which creates new snapshots from the database. Since tarantar uses less
memory than SAVE SNAPSHOT, it is especially appropriate for taking periodic
snapshots as a background task.
</para>
<para>
To prepare: ensure that the configuration file contains
<olinktargetptr="wal_dir"/> and <olinktargetptr="snap_dir"/>
clauses. Tarantar does not assume that wal_dir and snap_dir have default values.
</para>
<para>
To run:<programlisting><command>tarantar</command> [options] <replaceable>configuration-file</replaceable></programlisting>
where possible options are:<simplelist><member><code>-i <replaceable>seconds-count</replaceable></code> or <code>--interval <replaceable>seconds-count</replaceable></code>— repeat every seconds-count seconds. example: <code>-i 3600</code></member>
<member><code>-n <replaceable>lsn-number</replaceable></code> or <code>--lsn <replaceable>lsn-number</replaceable></code>— start from lsn = lsn-number. if not specified, lsn = latest. example: <code>-n 5</code></member>
<member><code>-l <replaceable>bytes-count</replaceable></code> or <code>--limit <replaceable>bytes-count</replaceable></code>— do not use more than bytes-count bytes of memory. example: <code>-l 5000000</code></member>
<member><code>--help </code>— display a help message and exit. example: <code>--help</code></member>
<member><code>-v </code> or <code>--version</code>— display version and exit. example: <code>-v</code></member></simplelist></para>