Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHuDN-0002Tq-Oq for pgsql-odbc@arkaria.postgresql.org; Wed, 22 Jul 2015 13:37:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZHuDN-00066u-At for pgsql-odbc@arkaria.postgresql.org; Wed, 22 Jul 2015 13:37:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZHuDM-00066n-Sg for pgsql-odbc@postgresql.org; Wed, 22 Jul 2015 13:37:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZHuDK-00089w-5Y for pgsql-odbc@postgresql.org; Wed, 22 Jul 2015 13:37:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t6MDbZkS017438; Wed, 22 Jul 2015 09:37:36 -0400 From: Tom Lane To: "Stefan Viljoen" cc: pgsql-odbc@postgresql.org, Devrim GÜNDÜZ Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client - SOLVED In-reply-to: <002601d0c469$f1da9a70$d58fcf50$@verishare.co.za> References: <002601d0c469$f1da9a70$d58fcf50$@verishare.co.za> Comments: In-reply-to "Stefan Viljoen" message dated "Wed, 22 Jul 2015 12:34:10 +0200" Date: Wed, 22 Jul 2015 09:37:35 -0400 Message-ID: <17437.1437572255@sss.pgh.pa.us> X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org "Stefan Viljoen" writes: > I managed to solve this on Centos 6.5 by downgrading to Postgres 9.0 and > ODBC is now working fine: Hm. That should not have fixed anything, because there for sure have not been any basic protocol-level changes since 9.0. Looking back at your earlier messages, I notice that you are using the Red Hat-supplied unixODBC package: > # yum list installed | grep ODBC > > unixODBC.x86_64 2.2.14-14.el6 @base > unixODBC-devel.x86_64 2.2.14-14.el6 @base but the Postgres ODBC driver seems to be coming from PGDG: > # yum list installed | grep postgres > > postgresql94.x86_64 9.4.4-1PGDG.rhel6 > postgresql94-contrib.x86_64 > postgresql94-devel.x86_64 > postgresql94-docs.x86_64 > postgresql94-libs.x86_64 > postgresql94-odbc.x86_64 > postgresql94-odbc-debuginfo.x86_64 > postgresql94-server.x86_64 An all-Red-Hat solution for this would look like Installing: postgresql-odbc x86_64 08.04.0200-1.el6 rhel-6-workstation-rpms 267 k Installing for dependencies: postgresql-libs x86_64 8.4.20-3.el6_6 rhel-6-workstation-rpms 202 k unixODBC x86_64 2.2.14-14.el6 rhel-6-workstation-rpms 378 k So now I'm suspicious that there's some incompatibility between the ODBC driver that Devrim is shipping and the admittedly-pretty-old unixODBC manager in RHEL6. (I haven't worked for Red Hat in a couple of years, but I'm fairly sure that when I left, their ODBC packages would still talk to current Postgres server versions, because I recall testing that. However, I never tested the combination of their unixODBC with the PGDG packaging of the ODBC driver...) regards, tom lane -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc