Re: cannot connect to database through ECPG but can through psql

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: cannot connect to database through ECPG but can through psql
Date: 2015-06-04 16:04:00
Message-ID: 20150604160400.GA10954@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Seann Reed <reedseannm(at)gmail(dot)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°

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2015-06-04 16:08:59 Re: cannot connect to database through ECPG but can through psql
Previous Message Seann Reed 2015-06-04 15:37:37 cannot connect to database through ECPG but can through psql