Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F0E8AB5DDA5 for ; Fri, 4 Nov 2011 19:37:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 87695-06 for ; Fri, 4 Nov 2011 22:37:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 7E9D5B5DC99 for ; Fri, 4 Nov 2011 19:37:07 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pA4Mb3ST018034; Fri, 4 Nov 2011 18:37:03 -0400 (EDT) To: "Ram" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6287: Unexpected protocol character during authentication In-reply-to: <201111042106.pA4L6EeZ084024@wwwmaster.postgresql.org> References: <201111042106.pA4L6EeZ084024@wwwmaster.postgresql.org> Comments: In-reply-to "Ram" message dated "Fri, 04 Nov 2011 21:06:14 +0000" Date: Fri, 04 Nov 2011 18:37:03 -0400 Message-ID: <18033.1320446223@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.101 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201111/51 X-Sequence-Number: 31646 "Ram" writes: > My odbc.ini is like below: > --------------------------- > [FH1SQL1] > Description = PostgreSQL connection to 'dbProjNum' database > Driver = /usr/lib64/libodbcpsql.so.2.0.0 > Setup = /usr/lib64/libodbcpsqlS.so.1.0.0 You're apparently using the very obsolete and buggy Postgres ODBC driver that ships with unixODBC --- or at least used to ship with unixOBC; I think they ripped it out in the most recent release. Get hold of the postgresql-odbc package (that's what Red Hat calls it, at least, dunno about whatever distribution you're using) and use the driver from that instead. I usually recommend this configuration for the driver definition: [PostgreSQL] Description = ODBC for PostgreSQL Driver = /usr/lib/psqlodbc.so Setup = /usr/lib/libodbcpsqlS.so Driver64 = /usr/lib64/psqlodbc.so Setup64 = /usr/lib64/libodbcpsqlS.so FileUsage = 1 Depending on which build of postgresql-odbc you're using, the driver library file might be named psqlodbcw.so instead; but in any case libodbcpsql.so is not something to trust. regards, tom lane