Hi.
At first,I think you lack some settings.
(eg. pg_hba.conf,listen_addresses or restarting)
But you say "I can log in to postgresql without password prompt using
the psql tool".
I can image some case,but we have to get some more information.
So I'd like you to try the following program.This
I am trying to connect to database using ECPG called 'database' - please see
the code below-. When I am excuting the code I am getting this message
Fatal error
SQL error: could not connect to database "database" on line 22
Fatal error
SQL error: connection "NULL" does not exist on line 23