postgresql-interfaces/psqlodbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: neetaghadge (@neetaghadge) <[email protected]>
To: postgresql-interfaces/psqlodbc <[email protected]>
Subject: Re: [postgresql-interfaces/psqlodbc] issue #143: avoid session pinning with psqlODBC and RDS Proxy
Date: Wed, 19 Nov 2025 06:55:50 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

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);_

view thread (13+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: github://postgresql-interfaces/psqlodbc
  Cc: [email protected], [email protected]
  Subject: Re: [postgresql-interfaces/psqlodbc] issue #143: avoid session pinning with psqlODBC and RDS Proxy
  In-Reply-To: <<[email protected]>>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox