aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-02-25 20:30:17 +0200
committerAlexander Korotkov <akorotkov@postgresql.org>2024-02-25 20:30:17 +0200
commit28e858c0f951a5f86f43ba9b8922c64bba96d2e1 (patch)
tree3aa637cfb0dcab1dae5bdcfea0f48133156241b1
parenta661bf7b0f56dd8bc298309de9937081ef485370 (diff)
downloadpostgresql-28e858c0f951a5f86f43ba9b8922c64bba96d2e1.tar.gz
postgresql-28e858c0f951a5f86f43ba9b8922c64bba96d2e1.zip
Improve documentation and GUC description for transaction_timeout
Reported-by: Alexander Lakhin
-rw-r--r--doc/src/sgml/config.sgml4
-rw-r--r--src/backend/utils/misc/guc_tables.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index ff184003feb..36a2a5ce431 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -9167,7 +9167,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
<listitem>
<para>
Terminate any session that spans longer than the specified amount of
- time in the transaction. The limit applies both to explicit transactions
+ time in a transaction. The limit applies both to explicit transactions
(started with <command>BEGIN</command>) and to an implicitly started
transaction corresponding to a single statement.
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;
<para>
If <varname>transaction_timeout</varname> is shorter or equal to
<varname>idle_in_transaction_session_timeout</varname> or <varname>statement_timeout</varname>
- <varname>transaction_timeout</varname> will invalidate the longer timeout.
+ then the longer timeout is ignored.
</para>
<para>
diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c
index 37be0669bba..527a2b27340 100644
--- a/src/backend/utils/misc/guc_tables.c
+++ b/src/backend/utils/misc/guc_tables.c
@@ -2589,7 +2589,7 @@ struct config_int ConfigureNamesInt[] =
{
{"transaction_timeout", PGC_USERSET, CLIENT_CONN_STATEMENT,
- gettext_noop("Sets the maximum allowed time in a transaction with a session (not a prepared transaction)."),
+ gettext_noop("Sets the maximum allowed duration of any transaction within a session (not a prepared transaction)."),
gettext_noop("A value of 0 turns off the timeout."),
GUC_UNIT_MS
},