Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHuKO-0002hY-4o for pgsql-odbc@arkaria.postgresql.org; Wed, 22 Jul 2015 13:44:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZHuKN-0004vg-NJ for pgsql-odbc@arkaria.postgresql.org; Wed, 22 Jul 2015 13:44:55 +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 1ZHuK0-00044w-Ee for pgsql-odbc@postgresql.org; Wed, 22 Jul 2015 13:44:32 +0000 Received: from mail.verishare.co.za ([217.29.208.2]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZHuJw-0008IE-GN for pgsql-odbc@postgresql.org; Wed, 22 Jul 2015 13:44:31 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id E980C42235A; Wed, 22 Jul 2015 15:44:21 +0200 (SAST) Received: from mail.verishare.co.za ([127.0.0.1]) by localhost (mail.verishare.co.za [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 4F8qM54T-u2B; Wed, 22 Jul 2015 15:44:21 +0200 (SAST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id 6E460422371; Wed, 22 Jul 2015 15:44:21 +0200 (SAST) X-Virus-Scanned: amavisd-new at verishare.co.za Received: from mail.verishare.co.za ([127.0.0.1]) by localhost (mail.verishare.co.za [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kGXwgDlT8ZGf; Wed, 22 Jul 2015 15:44:21 +0200 (SAST) Received: from STEFANPC (unknown [172.16.1.76]) by mail.verishare.co.za (Postfix) with ESMTPSA id 595B042235A; Wed, 22 Jul 2015 15:44:21 +0200 (SAST) From: "Stefan Viljoen" To: Cc: =?UTF-8?B?J0RldnJpbSBHw4PFk05Ew4PFk1on?= References: <002601d0c469$f1da9a70$d58fcf50$@verishare.co.za> <17437.1437572255@sss.pgh.pa.us> In-Reply-To: <17437.1437572255@sss.pgh.pa.us> Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client - SOLVED Date: Wed, 22 Jul 2015 15:47:32 +0200 Message-ID: <002d01d0c484$f523b6b0$df6b2410$@verishare.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIB6fcv3ZGHON7QLlZl3t6swrIiSQGID8FXnXj0ToA= Content-Language: en-za 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 Hi Tom Thanks for the answer. Yes, it turned out to be an incompatibility of some kind. I downgraded the Postgress instance to 9.0 and immediately everything start= ed working. I suspect that the very old unixODBC (2.2.14) that ships with a fully updat= ed Centos 6.5 (also old) is simply incompatible with the psqlodbc driver sh= ipped with Postgres 9.4 Everything is now working fine on Postgres 9.0 Maybe put up a note somewhere relevant that (maybe) Centos 6.5 stock unixOD= BC cannot talk to Postgres 9.4's ODBC driver? 9.0 definitely works like a charm (at least in my Centos 6.5 instance here.) Thanks for the time you took to assist with this. Kind regards, -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Wednesday,July 22, 2015 03:38 PM To: Stefan Viljoen Cc: pgsql-odbc@postgresql.org; Devrim G=C3=83=C5=93ND=C3=83=C5=93Z Subject: Re: [ODBC] Postgres 9.4 + unixODBC on Centos 6.5 problem connectin= g localhost postgres instance with isql ODBC commandline client - SOLVED "Stefan Viljoen" writes: > I managed to solve this on Centos 6.5 by downgrading to Postgres 9.0=20 > and ODBC is now working fine: Hm. That should not have fixed anything, because there for sure have not b= een 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 >=20 > 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 >=20 > 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 2= 67 k Installing for dependencies: postgresql-libs x86_64 8.4.20-3.el6_6 rhel-6-workstation-rpms 2= 02 k unixODBC x86_64 2.2.14-14.el6 rhel-6-workstation-rpms 3= 78 k So now I'm suspicious that there's some incompatibility between the ODBC dr= iver 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 tha= t when I left, their ODBC packages would still talk to current Postgres ser= ver versions, because I recall testing that. However, I never tested the c= ombination of their unixODBC with the PGDG packaging of the ODBC driver...) regards, tom lane --=20 Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc