Permalink
Browse files

remove unused gpgsql-socket option and document postgres socket usage

  • Loading branch information...
1 parent dd6f88b commit ba91c2f36579ce388c739f29e915a137eae25563 @mind04 mind04 committed with mind04 Jul 6, 2014
@@ -18,7 +18,6 @@ gPgSQLBackend::gPgSQLBackend(const string &mode, const string &suffix) : GSQLBa
setDB(new SPgSQL(getArg("dbname"),
getArg("host"),
getArg("port"),
- getArg("socket"),
getArg("user"),
getArg("password")));
}
@@ -41,7 +40,6 @@ class gPgSQLFactory : public BackendFactory
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");
@@ -10,7 +10,7 @@
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;
@@ -10,8 +10,7 @@ class SPgSQL : public SSql
{
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();
View
@@ -18653,6 +18653,13 @@ insert into domains (id,name,type) values (domains_id_sequence.nextval,'example.
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>

0 comments on commit ba91c2f

Please sign in to comment.