mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Add idle_in_transaction_session_timeout.
Vik Fearing, reviewed by Stéphane Schildknecht and me, and revised slightly by me.
This commit is contained in:
@ -6063,6 +6063,26 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="guc-idle-in-transaction-session-timeout" xreflabel="idle_in_transaction_session_timeout">
|
||||
<term><varname>idle_in_transaction_session_timeout</varname> (<type>integer</type>)
|
||||
<indexterm>
|
||||
<primary><varname>idle_in_transaction_session_timeout</> configuration parameter</primary>
|
||||
</indexterm>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Terminate any session with an open transaction that has been idle for
|
||||
longer than the specified duration in milliseconds. This allows any
|
||||
locks held by that session to be released and the connection slot to be reused;
|
||||
it also allows tuples visible only to this transaction to be vacuumed. See
|
||||
<xref linkend="routine-vacuuming"> for more details about this.
|
||||
</para>
|
||||
<para>
|
||||
The default value of 0 disables this feature.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="guc-vacuum-freeze-table-age" xreflabel="vacuum_freeze_table_age">
|
||||
<term><varname>vacuum_freeze_table_age</varname> (<type>integer</type>)
|
||||
<indexterm>
|
||||
|
@ -725,7 +725,9 @@ ERROR: could not serialize access due to read/write dependencies among transact
|
||||
<listitem>
|
||||
<para>
|
||||
Don't leave connections dangling <quote>idle in transaction</quote>
|
||||
longer than necessary.
|
||||
longer than necessary. The configuration parameter
|
||||
<xref linkend="guc-idle-in-transaction-session-timeout"> may be used to
|
||||
automatically disconnect lingering sessions.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user