Improve documentation and GUC description for transaction_timeout
authorAlexander Korotkov
Sun, 25 Feb 2024 18:30:17 +0000 (20:30 +0200)
committerAlexander Korotkov
Sun, 25 Feb 2024 18:30:17 +0000 (20:30 +0200)
Reported-by: Alexander Lakhin
doc/src/sgml/config.sgml
src/backend/utils/misc/guc_tables.c

index ff184003feb9abd51511d2663b756eea260ae3d3..36a2a5ce4314471ac213f39d96dc8621028adf46 100644 (file)
@@ -9167,7 +9167,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
       
        
         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 BEGIN) 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;
        
         If transaction_timeout is shorter or equal to
         idle_in_transaction_session_timeout or statement_timeout
-        transaction_timeout will invalidate the longer timeout.
+        then the longer timeout is ignored.
        
 
        
index 37be0669bba7f469580987efa01ce1ac7b7914c8..527a2b273401cf47ecfe57d66cd6de781bfbebe2 100644 (file)
@@ -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
        },