Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 28e858c

Browse files
committed
Improve documentation and GUC description for transaction_timeout
Reported-by: Alexander Lakhin
1 parent a661bf7 commit 28e858c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/src/sgml/config.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9167,7 +9167,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
91679167
<listitem>
91689168
<para>
91699169
Terminate any session that spans longer than the specified amount of
9170-
time in the transaction. The limit applies both to explicit transactions
9170+
time in a transaction. The limit applies both to explicit transactions
91719171
(started with <command>BEGIN</command>) and to an implicitly started
91729172
transaction corresponding to a single statement.
91739173
If this value is specified without units, it is taken as milliseconds.
@@ -9177,7 +9177,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
91779177
<para>
91789178
If <varname>transaction_timeout</varname> is shorter or equal to
91799179
<varname>idle_in_transaction_session_timeout</varname> or <varname>statement_timeout</varname>
9180-
<varname>transaction_timeout</varname> will invalidate the longer timeout.
9180+
then the longer timeout is ignored.
91819181
</para>
91829182

91839183
<para>

src/backend/utils/misc/guc_tables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2589,7 +2589,7 @@ struct config_int ConfigureNamesInt[] =
25892589

25902590
{
25912591
{"transaction_timeout", PGC_USERSET, CLIENT_CONN_STATEMENT,
2592-
gettext_noop("Sets the maximum allowed time in a transaction with a session (not a prepared transaction)."),
2592+
gettext_noop("Sets the maximum allowed duration of any transaction within a session (not a prepared transaction)."),
25932593
gettext_noop("A value of 0 turns off the timeout."),
25942594
GUC_UNIT_MS
25952595
},

0 commit comments

Comments
 (0)