diff roundup/backends/rdbms_common.py @ 7696:4af0d235b570

feat(db): support using postgresql service connection file Add new service rdbms config option to set the service name to be used with a postgresql service connection file. This can be done using the PGSERVICE environment variable for a single instance tracker server. For a multi-instance server this per-tracker config option is needed. Note that settings (host, user, (db)name...) in config.ini file will override the service connection file setting. Also setting PGSERVICE and service will use the service setting.
author John Rouillard <rouilj@ieee.org>
date Tue, 07 Nov 2023 12:11:37 -0500
parents 6f841a55eabf
children 216662fbaaee
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py	Sun Nov 05 23:01:29 2023 -0500
+++ b/roundup/backends/rdbms_common.py	Tue Nov 07 12:11:37 2023 -0500
@@ -112,8 +112,8 @@
     d = {}
     if dbnamestr:
         d[dbnamestr] = config.RDBMS_NAME
-    for name in ('host', 'port', 'password', 'user', 'read_default_group',
-                 'read_default_file'):
+    for name in ('host', 'port', 'password', 'user', 'service',
+                 'read_default_group', 'read_default_file'):
         cvar = 'RDBMS_'+name.upper()
         if config[cvar] is not None:
             d[name] = config[cvar]

Roundup Issue Tracker: http://roundup-tracker.org/