Author: turnstep
Date: Tue Jul 22 09:55:14 2008
New Revision: 11561

Modified:
   DBD-Pg/trunk/Pg.pm

Log:
Mention the host-socket trick.


Modified: DBD-Pg/trunk/Pg.pm
==============================================================================
--- DBD-Pg/trunk/Pg.pm  (original)
+++ DBD-Pg/trunk/Pg.pm  Tue Jul 22 09:55:14 2008
@@ -1792,6 +1792,16 @@
 
 =back
 
+You can also connect using sockets in a specific directory. This 
+may be needed if the server you are connecting to has a different 
+default socket directory from the one used to compile DBD::Pg. 
+Use the complete path to the socket directory as the name of the 
+host, like this:
+
+  $dbh = DBI->connect('dbi:Pg:dbname=foo;host=/var/tmp/socket',
+    $username, $password,
+    {AutoCommit => 0, RaiseError => 1});
+
 =item B<connect_cached>
 
 Implemented by DBI, no driver-specific impact.

Reply via email to