aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-connect.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-12-28 12:13:40 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-12-28 12:13:40 -0500
commitcf61b0734c61d93c62827fe4e44fa2162a533b8e (patch)
tree8f29c4382b916b93d55e9826d413e0b4338daade /src/interfaces/libpq/fe-connect.c
parent5f2e09bcccd771629fb7a2885f8c468ae0f7fb33 (diff)
downloadpostgresql-cf61b0734c61d93c62827fe4e44fa2162a533b8e.tar.gz
postgresql-cf61b0734c61d93c62827fe4e44fa2162a533b8e.zip
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
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
-rw-r--r--src/interfaces/libpq/fe-connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 7d04d3664e0..d2b1c207eb4 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -215,7 +215,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
"Database-Password-File", "", 64,
offsetof(struct pg_conn, pgpassfile)},
- {"channel_binding", "PGCHANNELBINDING", NULL, NULL,
+ {"channel_binding", "PGCHANNELBINDING", DefaultChannelBinding, NULL,
"Channel-Binding", "", 8, /* sizeof("require") == 8 */
offsetof(struct pg_conn, channel_binding)},