pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Add SSLMode connection option

Open IAkumaI opened this issue 1 year ago • 3 comments

PR: https://github.com/pgschema/pgschema/pull/75

For some databases I need to control SSL mode option (actually, need to disabled it), otherwise it does not connect. So I have added the option to CLI config.

IAkumaI avatar Oct 13 '25 11:10 IAkumaI

A properly configured PostgreSQL server should handle prefer gracefully. You shouldn't need to disable SSL unless PG server SSL is broken somehow.

tianzhou avatar Oct 13 '25 11:10 tianzhou

Yeah, but sometimes it's just so. Might be it's a dev server or what ever. Just setting the option to disable helps, otherwise I get FATAL: password authentication failed for user \"postgres\" (SQLSTATE 28P01) error.

Sometimes it's easier to pass a right config rather than changing the server.

IAkumaI avatar Oct 13 '25 12:10 IAkumaI

No obvious use case

tianzhou avatar Dec 03 '25 08:12 tianzhou