Skip to content

Commit 4ec85c1

Browse files
committed
direct, verify-full by default
1 parent 95b20c4 commit 4ec85c1

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/bin/psql/help.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ usage(unsigned short int pager)
5757
*/
5858
initPQExpBuffer(&buf);
5959

60-
HELP0("psql is the PostgreSQL interactive terminal.\n\n");
60+
HELP0("psql (with DSQL support) is the PostgreSQL interactive terminal.\n\n");
6161
HELP0("Usage:\n");
62-
HELP0(" psql [OPTION]... [DBNAME [USERNAME]]\n\n");
62+
HELP0(" pdsql [OPTION]... [DBNAME [USERNAME]]\n\n");
6363

6464
HELP0("General options:\n");
6565
HELP0(" -c, --command=COMMAND run only single command (SQL or internal) and exit\n");

src/bin/psql/startup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ main(int argc, char *argv[])
219219

220220
if (pset.dsql)
221221
{
222-
setenv("PGSSLMODE", "require", 0);
223222
setenv("PGDSQL", "1", 1);
224223
pset.getPassword = TRI_NO;
225224
}

src/interfaces/libpq/fe-connect.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
281281
* parameters have no effect on non-SSL connections, so there is no reason
282282
* to exclude them since none of them are mandatory.
283283
*/
284-
{"sslmode", "PGSSLMODE", DefaultSSLMode, NULL,
284+
{"sslmode", "PGSSLMODE", "verify-full", NULL,
285285
"SSL-Mode", "", 12, /* sizeof("verify-full") == 12 */
286286
offsetof(struct pg_conn, sslmode)},
287287

288-
{"sslnegotiation", "PGSSLNEGOTIATION", DefaultSSLNegotiation, NULL,
288+
{"sslnegotiation", "PGSSLNEGOTIATION", "direct", NULL,
289289
"SSL-Negotiation", "", 9, /* sizeof("postgres") == 9 */
290290
offsetof(struct pg_conn, sslnegotiation)},
291291

@@ -309,7 +309,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
309309
"SSL-Client-Key-Password", "*", 20,
310310
offsetof(struct pg_conn, sslpassword)},
311311

312-
{"sslrootcert", "PGSSLROOTCERT", NULL, NULL,
312+
{"sslrootcert", "PGSSLROOTCERT", "system", NULL,
313313
"SSL-Root-Certificate", "", 64,
314314
offsetof(struct pg_conn, sslrootcert)},
315315

0 commit comments

Comments
 (0)