ROOT + PostgreSQL


In our project we would like to use PostreSQL DB for storing some information. I got some troubles with intercommunication with DB server. Here is an example:

root [0] TSQLServer * testpg=TSQLServer::Connect("pgsql://", "#login#","#pass#"); Error in <TPgSQLServer::TPgSQLServer>: connection to failed

No any restriction related with network communication between nodes.

For intercommunication with PostgreSQL using next components on client node:


ROOT 5.28/00d (tags/v5-28-00d@39145, May 07 2011, 22:11:33 on linuxx8664gcc)
Compiled with postgresql support: (./configure --enable-pgsql)

On server node: [quote]PostgreSQL version 8.4.7 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50), 64-bit.[/quote]

Any ideas where is the problem?


Did you try a direct connection on the same node using the postgresql client?