Hi Richard,

I noticed that your bug got reassigned to the adodb package, and as I
use it too I thought I'd take a crack at fixing it.

I think the problem is that you're not using the correct method for
conecting to a postgresql database over a socket. If you use the dsn
method you were using, then there's no way to specify the name of the
socket (the triple slash method only works for file:///, and I don't
think adodb supports that). To use sockets, I think the only way to do
it is to use a standard PostgreSQL connection string, as described
here:

http://phplens.com/lens/adodb/docs-adodb.htm#connect

Note the one line reference to PostgreSQL. So, you need to use the
connection string specified here:

http://www.postgresql.org/docs/7.4/static/libpq.html#LIBPQ-CONNECT

and, as they say, use the host parameter starting with a slash to
specify the socket directory. The following example worked fine for
me:

$conn = &ADONewConnection('postgres');
$conn->Connect("host=/var/run/postgresql dbname=testdb user=myuser
password=mypass");

It looks like this isn't a bug, but I'm not sure if I'm
misunderstanding what you're trying to do, as I don't use Postgre
much. Let me know if this solves the problem.

Cameron Dale

Reply via email to