setDB(new SPgSQL(getArg("dbname"),
getArg("host"),
getArg("port"),
- getArg("socket"),
getArg("user"),
getArg("password")));
}
declare(suffix,"user","Pdns backend user to connect as","");
declare(suffix,"host","Pdns backend host to connect to","");
declare(suffix,"port","Database backend port to connect to","");
- declare(suffix,"socket","Pdns backend socket to connect to","");
declare(suffix,"password","Pdns backend password to connect with","");
declare(suffix,"dnssec","Enable DNSSEC processing","no");
bool SPgSQL::s_dolog;
-SPgSQL::SPgSQL(const string &database, const string &host, const string& port, const string &msocket, const string &user,
+SPgSQL::SPgSQL(const string &database, const string &host, const string& port, const string &user,
const string &password)
{
d_db=0;
{
public:
SPgSQL(const string &database, const string &host="", const string& port="",
- const string &msocket="",const string &user="",
- const string &password="");
+ const string &user="", const string &password="");
~SPgSQL();
Database host to connect to. WARNING: When specified as a hostname a chicken/egg situation might arise where the database
is needed to resolve the IP address of the database. It is best to supply an IP address of the database here.
</para>
+ <para>
+ Only for postgres:
+ </para>
+ <para>
+ If host begins with a slash, it specifies Unix-domain communication rather than TCP/IP communication; the value is the name
+ of the directory in which the socket file is stored.
+ </para>
</listitem>
</varlistentry>
<varlistentry>