Skip to content

Commit cf61b07

Browse files
committed
Expose the default for channel_binding in PQconndefaults().
If there's a static default value for a connection option, it should be shown in the PQconninfoOptions array. Daniele Varrazzo Discussion: https://postgr.es/m/CA+mi_8Zo8Rgn7p+6ZRY7QdDu+23ukT9AvoHNyPbgKACxwgGhZA@mail.gmail.com
1 parent 5f2e09b commit cf61b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
215215
"Database-Password-File", "", 64,
216216
offsetof(struct pg_conn, pgpassfile)},
217217

218-
{"channel_binding", "PGCHANNELBINDING", NULL, NULL,
218+
{"channel_binding", "PGCHANNELBINDING", DefaultChannelBinding, NULL,
219219
"Channel-Binding", "", 8, /* sizeof("require") == 8 */
220220
offsetof(struct pg_conn, channel_binding)},
221221

0 commit comments

Comments
 (0)