Skip to content

Commit 1fea1e3

Browse files
committed
libpq: Change "options" dispchar to normal
libpq connection options as returned by PQconndefaults() have a "dispchar" field that determines (among other things) whether an option is a "debug" option, which shouldn't be shown by default to clients. postgres_fdw makes use of that to control which connection options to accept from a foreign server configuration. Curiously, the "options" option, which allows passing configuration settings to the backend server, was listed as a debug option, which prevented it from being used by postgres_fdw. Maybe it was once meant for debugging, but it's clearly in general use nowadays. So change the dispchar for it to be the normal non-debug case. Also remove the "debug" reference from its label field. Reported-by: Shinoda, Noriyoshi <noriyoshi.shinoda@hpe.com>
1 parent 98afa68 commit 1fea1e3

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
@@ -236,7 +236,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
236236
offsetof(struct pg_conn, pgtty)},
237237

238238
{"options", "PGOPTIONS", DefaultOption, NULL,
239-
"Backend-Debug-Options", "D", 40,
239+
"Backend-Options", "", 40,
240240
offsetof(struct pg_conn, pgoptions)},
241241

242242
{"application_name", "PGAPPNAME", NULL, NULL,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy