Re: cannot connect to database through ECPG but can through psql - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: cannot connect to database through ECPG but can through psql
Date
Msg-id 20150604160400.GA10954@tux
Whole thread Raw
In response to cannot connect to database through ECPG but can through psql  (Seann Reed <reedseannm@gmail.com>)
List pgsql-general
Seann Reed <reedseannm@gmail.com> wrote:

> Everything worked fine with the old setup.  With the new setup, I can access my
> database through psql command-line.  However, I have a compiled program called
> 'Shefdecode' that makes queries to the database through ECPG and this program
> cannot access the database.  I get errors:

My guess: psql connects via unix socket, that's works. The programm
tries to connect via tcp/ip - don't work.

Check if listen_adresses in your postgresql.conf is enabled.


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


pgsql-general by date:

Previous
From: Seann Reed
Date:
Subject: cannot connect to database through ECPG but can through psql
Next
From: Tom Lane
Date:
Subject: Re: cannot connect to database through ECPG but can through psql