Missing compiled default for channel_binding param from PQconndefaults

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Missing compiled default for channel_binding param from PQconndefaults
Date: 2020-12-28 01:27:08
Message-ID: CA+mi_8Zo8Rgn7p+6ZRY7QdDu+23ukT9AvoHNyPbgKACxwgGhZA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

$ python
>>> import psycopg3
>>> print([info for info in psycopg3.pq.Conninfo.get_defaults() if info.keyword == b"channel_binding"])
[ConninfoOption(keyword=b'channel_binding',
envvar=b'PGCHANNELBINDING', compiled=None, val=None,
label=b'Channel-Binding', dispchar=b'', dispsize=8)]

compiled is expected to be "prefer" or "disable" as per docs.

Please find a patch attached.

Cheers

-- Daniele

Attachment Content-Type Size
default-channel-binding.patch text/x-patch 592 bytes

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-12-28 01:48:45 Re: Missing compiled default for channel_binding param from PQconndefaults
Previous Message Justin Pryzby 2020-12-27 19:07:29 Re: pg_upgrade test for binary compatibility of core data types