Message-ID: From: "neetaghadge (@neetaghadge)" To: "postgresql-interfaces/psqlodbc" Date: Wed, 19 Nov 2025 06:55:50 +0000 Subject: Re: [postgresql-interfaces/psqlodbc] issue #143: avoid session pinning with psqlODBC and RDS Proxy In-Reply-To: References: List-Id: X-GitHub-Author-Login: neetaghadge X-GitHub-Comment-Id: 3551086212 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 143 X-GitHub-Repo: postgresql-interfaces/psqlodbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/postgresql-interfaces/psqlodbc/issues/143#issuecomment-3551086212 Content-Type: text/plain; charset=utf-8 Hi @davecramer , With this fix, the RDS Proxy fails to connect to the database, returning: **FATAL: Feature not supported: RDS Proxy currently doesn’t support command-line options.** After I removed the newly added code from **connection.c,** my application was able to connect to the RDS Proxy: __/* Add DateStyle and extra_float_digits as startup parameters */ if (cnt < PROTOCOL3_OPTS_MAX - 2) { opts[cnt] = "options"; vals[cnt++] = "-cextra_float_digits=2"; opts[cnt] = "options"; vals[cnt++] = "-cDateStyle=ISO"; }_ For reference, when I tested locally by removing only the SET commands from **LIBPQ_CC_connect**() method, I noticed that sessions were no longer being pinned with this fix: **Before:** _res = CC_send_query(self, "SET DateStyle = 'ISO';SET extra_float_digits = 2;" ISOLATION_SHOW_QUERY, NULL, READ_ONLY_QUERY, NULL);_ **After:** _res = CC_send_query(self, ISOLATION_SHOW_QUERY, NULL, READ_ONLY_QUERY, NULL);_