Re: Missing compiled default for channel_binding param from PQconndefaults

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: Missing compiled default for channel_binding param from PQconndefaults
Date: 2020-12-28 02:44:52
Message-ID: 1539117.1609123492@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> writes:
> On Mon, 28 Dec 2020 at 01:48, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Isn't there a psycopg3 bug here
>> too, that it's not coping with a null default sanely?

> As far as I can see, psycopg3 reports the distinction between nulls
> and empty strings ok: see the "compiled" values in this sample. Or
> maybe I didn't understand your observation?

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)? It's possible that there's more than one thing going
wrong here, but I don't really understand why the existing code is
leading to a failure.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-12-28 03:00:50 Re: Missing compiled default for channel_binding param from PQconndefaults
Previous Message Daniele Varrazzo 2020-12-28 02:37:03 Re: Missing compiled default for channel_binding param from PQconndefaults