Missing compiled default for channel_binding param from PQconndefaults - Mailing list pgsql-bugs

From Daniele Varrazzo
Subject Missing compiled default for channel_binding param from PQconndefaults
Date
Msg-id CA+mi_8Zo8Rgn7p+6ZRY7QdDu+23ukT9AvoHNyPbgKACxwgGhZA@mail.gmail.com
Whole thread Raw
Responses Re: Missing compiled default for channel_binding param from PQconndefaults
List 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

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16792: silent corruption of GIN index resulting in SELECTs returning non-matching rows
Next
From: Tom Lane
Date:
Subject: Re: Missing compiled default for channel_binding param from PQconndefaults