[svn:DBD-Pg] r11561 - DBD-Pg/trunk

[email protected]
Newsgroups perl.dbd.pg.changes
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.