Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKRBf-0007g3-SL for pgsql-odbc@arkaria.postgresql.org; Wed, 29 Jul 2015 13:14:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKRBf-0007Fo-AI for pgsql-odbc@arkaria.postgresql.org; Wed, 29 Jul 2015 13:14:23 +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 1ZKRBI-0006qc-Nf for pgsql-odbc@postgresql.org; Wed, 29 Jul 2015 13:14:00 +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 1ZKRBA-0003wm-QO for pgsql-odbc@postgresql.org; Wed, 29 Jul 2015 13:13:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id 6084D42333B; Wed, 29 Jul 2015 15:13:46 +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 sv8hfsWIxlWR; Wed, 29 Jul 2015 15:13:45 +0200 (SAST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id A5CE842333A; Wed, 29 Jul 2015 15:13:45 +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 TED3QAF1PsDT; Wed, 29 Jul 2015 15:13:45 +0200 (SAST) Received: from STEFANPC (unknown [172.16.1.76]) by mail.verishare.co.za (Postfix) with ESMTPSA id 890E1423339; Wed, 29 Jul 2015 15:13:45 +0200 (SAST) From: "Stefan Viljoen" To: , =?UTF-8?B?J0RldnJpbSBHw4PFk05Ew4PFk1on?= References: <002601d0c469$f1da9a70$d58fcf50$@verishare.co.za> <17437.1437572255@sss.pgh.pa.us> <002d01d0c484$f523b6b0$df6b2410$@verishare.co.za> <1438175114.3436.20.camel@gmail.com> In-Reply-To: <1438175114.3436.20.camel@gmail.com> Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client - SOLVED Date: Wed, 29 Jul 2015 15:16:47 +0200 Message-ID: <001601d0ca00$d280ede0$7782c9a0$@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: AQIB6fcv3ZGHON7QLlZl3t6swrIiSQGID8FXAfghcvgB7w3stJ1ks1Nw Content-Language: en-za X-Pg-Spam-Score: -3.3 (---) 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 Jaime Thanks for confirming that. I suspected as much when I tcpdumped the traffi= c to the localhost and saw that the db names were being munged when a conne= ction from the old unixODBC was attempted... Kind regards. -----Original Message----- From: jaime soler [mailto:jaime.soler@gmail.com]=20 Sent: Wednesday,July 29, 2015 03:05 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 El mi=C3=A9, 22-07-2015 a las 15:47 +0200, Stefan Viljoen escribi=C3=B3: > Hi Tom >=20 > Thanks for the answer. >=20 > Yes, it turned out to be an incompatibility of some kind. >=20 > I downgraded the Postgress instance to 9.0 and immediately everything sta= rted working. >=20 > I suspect that the very old unixODBC (2.2.14) that ships with a fully=20 > updated Centos 6.5 (also old) is simply incompatible with the psqlodbc=20 > driver shipped with Postgres 9.4 unixODBC should be at least 2.3.1 for postgresql 9.3 and 9.4 . Enterprisedb ships unixODBC-2.3.1.tar.bz2 with pgodbc driver, so I suppose = postgresql-odbc ( redhat package) have to update its dependencies. >=20 > Everything is now working fine on Postgres 9.0 >=20 > Maybe put up a note somewhere relevant that (maybe) Centos 6.5 stock unix= ODBC cannot talk to Postgres 9.4's ODBC driver? >=20 > 9.0 definitely works like a charm (at least in my Centos 6.5 instance=20 > here.) >=20 > Thanks for the time you took to assist with this. >=20 > Kind regards, >=20 > -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] > 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=20 > connecting localhost postgres instance with isql ODBC commandline=20 > client - SOLVED >=20 > "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: >=20 > Hm. That should not have fixed anything, because there for sure have not= been any basic protocol-level changes since 9.0. >=20 > Looking back at your earlier messages, I notice that you are using the Re= d Hat-supplied unixODBC package: >=20 > > # 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 >=20 > but the Postgres ODBC driver seems to be coming from PGDG: >=20 > > # 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 >=20 > An all-Red-Hat solution for this would look like >=20 > 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 >=20 > So now I'm suspicious that there's some incompatibility between the ODBC = driver that Devrim is shipping and the admittedly-pretty-old unixODBC manag= er in RHEL6. >=20 > (I haven't worked for Red Hat in a couple of years, but I'm fairly=20 > sure that when I left, their ODBC packages would still talk to current=20 > Postgres server versions, because I recall testing that. However, I=20 > never tested the combination of their unixODBC with the PGDG packaging=20 > of the ODBC > driver...) >=20 > regards, tom lane >=20 >=20 >=20 --=20 Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc