Mark sslkeylogfile as Debug option
authorDaniel Gustafsson <[email protected]>
Sun, 13 Apr 2025 19:52:29 +0000 (21:52 +0200)
committerDaniel Gustafsson <[email protected]>
Sun, 13 Apr 2025 19:53:03 +0000 (21:53 +0200)
Mark the sslkeylogile option as "D" debug as this truly is a debug
option, and it will allow postgres_fdw et.al to filter it out as
well.  Also update the display length to match that for an ssl key
as they are both filename based inputs.

Author: Daniel Gustafsson <[email protected]>
Reported-by: Jacob Champion <[email protected]>
Discussion: https://postgr.es/m/CAOYmi+=5GyBKpu7bU4D_xkAnYJTj=rMzGaUvHO99-DpNG_YKcw@mail.gmail.com

src/interfaces/libpq/fe-connect.c

index 0258d9ace3c9b4bbaf46e2109881a959f087c0bb..bd86de53c6732c7ecaad9b899ade87ca82317a0c 100644 (file)
@@ -402,7 +402,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
    offsetof(struct pg_conn, oauth_scope)},
 
    {"sslkeylogfile", NULL, NULL, NULL,
-       "SSL-Key-Log-File", "", 0,  /* sizeof("") = 0 */
+       "SSL-Key-Log-File", "D", 64,
    offsetof(struct pg_conn, sslkeylogfile)},
 
    /* Terminating entry --- MUST BE LAST */