Re: Missing compiled default for channel_binding param from PQconndefaults

Daniele Varrazzo <daniele.varrazzo@gmail.com>

From: Daniele Varrazzo <daniele.varrazzo@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2020-12-28T03:04:46Z
Lists: pgsql-bugs
On Mon, 28 Dec 2020 at 03:00, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> I wrote:
> > If the null parameter gets passed through cleanly, why don't we end
> > up with connectOptions2 inserting the correct value (line 1257 as
> > of HEAD)?
>
> Oh, wait, I misunderstood your original complaint.  It's not that
> connections are failing, it's just that you would like PQconndefaults
> to make the default value visible if there is one, right?

Yes, I was about to reply exactly that :) I've only found a
discrepancy between PQconninfo(pgconn) and PQconndefaults(), not a
connection problem

Cheers

-- Daniele



Commits

  1. Expose the default for channel_binding in PQconndefaults().