(setq sql-postgres-options '("sql" "--certs-dir=/tmp/certs")) Finally the login params are pretty standard.
(setq sql-postgres-login-params '((user :default "root") (database :default "") (server :default "localhost") (port :default 26500))) Step 2.