pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Viljoen <viljoens@verishare.co.za>
To: 'Faith, Jeremy' <jfaith@tycoint.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client
Date: Mon, 20 Jul 2015 14:07:40 +0200
Message-ID: <004a01d0c2e4$ad416320$07c42960$@verishare.co.za> (raw)
In-Reply-To: <55BAADA01D8C504993894EAEA7517CF81246DB@003FCH1MPN2-002.003f.mgd2.msft.net>
References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za>
	<55A8BF02.4090001@lurcher.org>
	<002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za>
	<55A8E0B8.3070107@lurcher.org>
	<002e01d0c088$c6b57390$54205ab0$@verishare.co.za>
	<55A8F948.9040407@lurcher.org>
	<002f01d0c090$da03cc50$8e0b64f0$@verishare.co.za>
	<55A905FA.2080701@aklaver.com>
	<003001d0c099$e21a7b60$a64f7220$@verishare.co.za>
	<55A90E6A.4030802@lurcher.org>
	<003201d0c09f$b1ece5d0$15c6b170$@verishare.co.za>
	<55BAADA01D8C504993894EAEA7517CF8124630@003FCH1MPN2-002.003f.mgd2.msft.net>
	<000d01d0c2b8$a8f146e0$fad3d4a0$@verishare.co.za>
	<004501d0c2d8$5a4cc710$0ee65530$@verishare.co.za>
	<55BAADA01D8C504993894EAEA7517CF81246C6@003FCH1MPN2-002.003f.mgd2.msft.net>
	<004601d0c2db$2d38ade0$87aa09a0$@verishare.co.za>
	<55BAADA01D8C504993894EAEA7517CF81246DB@003FCH1MPN2-002.003f.mgd2.msft.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi Jeremy

>I think your /etc/hosts file is fine but just to be certain you could try
> psql -h 127.0.0.1 ...
>if this works it is probably NOT the problem.

Ok, tried this - psql -works-?

---
[root@jhbasterisk ~]# psql -h 127.0.0.1 -U asteriskcdruser -d asteriskcdrdb
psql (9.4.4)
Type "help" for help.

asteriskcdrdb=>
---

So that blows my theory out of the water - postgres clearly is listening via
IPV4 on 127.0.0.1 and accepts the connection (my hba file currently has
"trust" on all lines, so no password is requested.)

Putting all the lines in the hba.conf to "md5" asks for a password for the
above step, but STILL works, and isql still fails with the exact same error
it constantly fails with.

All I can surmise is that the unixODBC drivers are incapable due to some
protocol difference or mismatch in connecting to the pgsql driver supplied
with Postgres 9.4 as there apparently is no error in my configuration or
installation of either.

BTW MariaDB 10.0.20 ver 15.1 / MySQL works perfectly via unixODBC on the
same physical box I'm finding it impossible to get postgres 9.4 ODBC access
working on.

So I'm reasonably sure the unixODBC infrastructure IS installed correctly
and is working...

Last resort is probably to start tcpdump'ing and try and ferret out just
what isql is "saying" that Postgres 9.4's ODBC drivers don't "understand"?

But that is going to take such an enormous amount of effort it might be
better to just downgrade pg and if that fails abandon postgres entirely and
try to use MySQL (which is slower and IMO much more limited).

In an ideal situation I'd install Centos 7 which has newer unixODBC drivers
(I suppose) but I have to get this working on a deployed machine that can't
just be sunk for several hours.

Thanks,

Stefan



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (39+ messages)  latest in thread

Message-ID: <004a01d0c2e4$ad416320$07c42960$@verishare.co.za>
Permalink:  ../004a01d0c2e4$ad416320$07c42960$@verishare.co.za/
Also on:    postgresql.org/message-id/004a01d0c2e4$ad416320$07c42960$@verishare.co.za

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: viljoens@verishare.co.za, jfaith@tycoint.com
  Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client
  In-Reply-To: <004a01d0c2e4$ad416320$07c42960$@verishare.co.za>
  References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za> <55A8BF02.4090001@lurcher.org> <002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za> <55A8E0B8.3070107@lurcher.org> <002e01d0c088$c6b57390$54205ab0$@verishare.co.za> <55A8F948.9040407@lurcher.org> <002f01d0c090$da03cc50$8e0b64f0$@verishare.co.za> <55A905FA.2080701@aklaver.com> <003001d0c099$e21a7b60$a64f7220$@verishare.co.za> <55A90E6A.4030802@lurcher.org> <003201d0c09f$b1ece5d0$15c6b170$@verishare.co.za> <55BAADA01D8C504993894EAEA7517CF8124630@003FCH1MPN2-002.003f.mgd2.msft.net> <000d01d0c2b8$a8f146e0$fad3d4a0$@verishare.co.za> <004501d0c2d8$5a4cc710$0ee65530$@verishare.co.za> <55BAADA01D8C504993894EAEA7517CF81246C6@003FCH1MPN2-002.003f.mgd2.msft.net> <004601d0c2db$2d38ade0$87aa09a0$@verishare.co.za> <55BAADA01D8C504993894EAEA7517CF81246DB@003FCH1MPN2-002.003f.mgd2.msft.net> <004a01d0c2e4$ad416320$07c42960$@verishare.co.za>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox