]> granicus.if.org Git - pdns/commitdiff
remove unused gpgsql-socket option and document postgres socket usage
authorKees Monshouwer <mind04@monshouwer.org>
Sun, 6 Jul 2014 11:49:38 +0000 (13:49 +0200)
committermind04 <mind04@monshouwer.org>
Sun, 6 Jul 2014 11:49:38 +0000 (13:49 +0200)
modules/gpgsqlbackend/gpgsqlbackend.cc
modules/gpgsqlbackend/spgsql.cc
modules/gpgsqlbackend/spgsql.hh
pdns/docs/pdns.xml

index 15502268bc310b2d351cae25e36801c98a8babc1..2a78b906d8e2795d54782c2554f84d1e5b35bc5a 100644 (file)
@@ -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 @@ public:
     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");
index 019eba573cf6436d8335ef47992d2de05b1ef610..84bff3cccb64ea7e79f48c3c783172892e7e5185 100644 (file)
@@ -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;
index 796a9231f2c11d28b90c9887672f12079d7752df..1510d3c625d971e7a9350e2b7c4856252bd8bf35 100644 (file)
@@ -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();
   
index 05108a7de9e97e97f06ef5dc01ed2e980d60dbde..62d0b3128a6e25c7bb3fff4c1ae6a048017576e1 100644 (file)
@@ -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>