[sr-dev] git:master:3f324e84: modules: readme files regenerated - db_postgres ... [skip ci]

Kamailio Dev kamailio.dev at kamailio.org
Tue Feb 9 21:31:21 CET 2021


Module: kamailio
Branch: master
Commit: 3f324e84d4b6f8ac86e72cc63fce2ec9d5eec9e4
URL: https://github.com/kamailio/kamailio/commit/3f324e84d4b6f8ac86e72cc63fce2ec9d5eec9e4

Author: Kamailio Dev <kamailio.dev at kamailio.org>
Committer: Kamailio Dev <kamailio.dev at kamailio.org>
Date: 2021-02-09T21:31:11+01:00

modules: readme files regenerated - db_postgres ... [skip ci]

---

Modified: src/modules/db_postgres/README

---

Diff:  https://github.com/kamailio/kamailio/commit/3f324e84d4b6f8ac86e72cc63fce2ec9d5eec9e4.diff
Patch: https://github.com/kamailio/kamailio/commit/3f324e84d4b6f8ac86e72cc63fce2ec9d5eec9e4.patch

---

diff --git a/src/modules/db_postgres/README b/src/modules/db_postgres/README
index 25870ab9e7..88ea8cea62 100644
--- a/src/modules/db_postgres/README
+++ b/src/modules/db_postgres/README
@@ -28,6 +28,7 @@ Greg Fausak
               3.3. tcp_keepalive (integer)
               3.4. lockset (integer)
               3.5. bytea_output_escape (integer)
+              3.6. con_param (str)
 
         4. Functions
 
@@ -38,6 +39,7 @@ Greg Fausak
    1.3. Set tcp_keepalive parameter
    1.4. Set lockset parameter
    1.5. Set bytea_output_escape parameter
+   1.6. Set con_param parameter
 
 Chapter 1. Admin Guide
 
@@ -56,6 +58,7 @@ Chapter 1. Admin Guide
         3.3. tcp_keepalive (integer)
         3.4. lockset (integer)
         3.5. bytea_output_escape (integer)
+        3.6. con_param (str)
 
    4. Functions
 
@@ -89,6 +92,7 @@ Chapter 1. Admin Guide
    3.3. tcp_keepalive (integer)
    3.4. lockset (integer)
    3.5. bytea_output_escape (integer)
+   3.6. con_param (str)
 
 3.1. retries (integer)
 
@@ -107,9 +111,11 @@ modparam("db_postgres", "retries", 3)
 3.2. timeout (integer)
 
    Setting this variable to any value larger than zero (which is the
-   default value) enables both a connection timeout and a query timeout.
-   If a connection attempt or a query takes longer than this many seconds,
-   the operation will be aborted and an error will be returned.
+   default value) enables mainly query timeout. For backward compatibility
+   it also enables connection timeout if connect_timeout param is not set
+   using the con_param below. If a connection attempt or a query takes
+   longer than this many seconds, the operation will be aborted and an
+   error will be returned.
 
    Note that this timeout is applied to each underlying operation (i.e.
    for each connection attempt), so depending on circumstances and on the
@@ -159,6 +165,21 @@ modparam("db_postgres", "lockset", 6)
 modparam("db_postgres", "bytea_output_escape", 0)
 ...
 
+3.6. con_param (str)
+
+   Specifies the connection string parameters. Parameter definition must
+   be in the format param1=value1;param2=value2. Many parameters can be
+   set.
+
+   NOTE: See postgres connection keyword list
+   (https://www.postgresql.org/docs/12/libpq-connect.html#LIBPQ-PARAMKEYWO
+   RDS)
+
+   Example 1.6. Set con_param parameter
+...
+modparam("db_postgres", "con_param", "connect_timeout=15;tcp_user_timeout=5000")
+...
+
 4. Functions
 
    NONE




More information about the sr-dev mailing list