## `gpgsql-dnssec`
Enable DNSSEC processing for this backend. Default=no.
+## `gpsql-extra-connection-parameters`
+Extra connection parameters to forward to postgres. If you want to pin a specific certificate for
+the connection you should set this to `sslmode=verify-full sslrootcert=<path-to-CA-cert>`. Accepted
+parameters are documented [in the PostgreSQL documentation](https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS).
+
# Default schema
```
!!include=../modules/gpgsqlbackend/schema.pgsql.sql
getArg("host"),
getArg("port"),
getArg("user"),
- getArg("password")));
+ getArg("password"),
+ getArg("extra-connection-parameters")));
}
catch(SSqlException &e) {
declare(suffix,"host","Pdns backend host to connect to","");
declare(suffix,"port","Database backend port to connect to","");
declare(suffix,"password","Pdns backend password to connect with","");
+ declare(suffix,"extra-connection-parameters", "Extra parameters to add to connection string","");
declare(suffix,"dnssec","Enable DNSSEC processing","no");
bool SPgSQL::s_dolog;
SPgSQL::SPgSQL(const string &database, const string &host, const string& port, const string &user,
- const string &password)
+ const string &password, const string &extra_connection_parameters)
{
d_db=0;
d_in_trx = false;
if(!port.empty())
d_connectstr+=" port="+port;
+ if(!extra_connection_parameters.empty())
+ d_connectstr+=" " + extra_connection_parameters;
+
d_connectlogstr=d_connectstr;
if(!password.empty()) {
{
public:
SPgSQL(const string &database, const string &host="", const string& port="",
- const string &user="", const string &password="");
+ const string &user="", const string &password="",
+ const string &extra_connection_parameters="");
~SPgSQL();