Richard Huxton <dev(at)archonet(dot)com> writes:> With a libpq call you could set "sslmode", but I'm not sure if you can > do that from the command-line.
I think you can set it via a PGSSLMODE environment variable.
regards, tom lane