Re: Connect error - Mailing list pgsql-novice

From Sai Hertz And Control Systems
Subject Re: Connect error
Date
Msg-id 4002CEF9.4030707@sancharnet.in
Whole thread Raw
In response to Connect error  (Russell Shaw <rjshaw@iprimus.com.au>)
List pgsql-novice
Dear Russell Shaw ,

>   <?php
>     $conn=pg_connect("dbname=parts_list user=russell");
>     if(!$conn)
>       exit(pg_result_error($conn));
>   ?>
>
> I have apache-1.3 running ok. In /etc/postgresql/pg_hba.conf, i
> have "ident sameuser". I can access the database ok from my user

Bill is correct IDENT  gives me doubt also
To check further do one thing
psql -U <username> -h localhost <database>
If this fails
make sure postgres.conf  has field
Check tcpip_socket is set to true
and
virtual_host is pointing to server's IP

hope this helps

Regards,

Vishal Kashyap

pgsql-novice by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Connect error
Next
From: "Rod K"
Date:
Subject: Re: Connect error