Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client

From: "Faith, Jeremy" <jfaith(at)tycoint(dot)com>
To: Stefan Viljoen <viljoens(at)verishare(dot)co(dot)za>, 'Nick Gorham' <nick(at)lurcher(dot)org>, "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client
Date: 2015-07-17 16:27:56
Message-ID: 55BAADA01D8C504993894EAEA7517CF8124630@003FCH1MPN2-002.003f.mgd2.msft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi Stefan,

Is your PGHOST environment variable set?

If not psql will be using /tmp by default(i.e. unix domain socket which is the 'local' line in the pg_hba.conf file), try
psql -h localhost ...

If this does NOT work it explains why your odbc.ini settings are not working, you could then try changing the odbc.ini line to:-
Servername = /tmp

Regards,
Jeremy
Tyco Safety Products/CEM Systems Ltd.

________________________________

This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Stefan Viljoen 2015-07-20 06:30:27 Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client
Previous Message Nick Gorham 2015-07-17 14:56:43 Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client