pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ram <ramamohan.raju31@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6287: Unexpected protocol character during authentication
Date: Fri, 04 Nov 2011 18:37:03 -0400
Message-ID: <18033.1320446223@sss.pgh.pa.us> (raw)
In-Reply-To: <201111042106.pA4L6EeZ084024@wwwmaster.postgresql.org>
References: <201111042106.pA4L6EeZ084024@wwwmaster.postgresql.org>

"Ram" <ramamohan.raju31@gmail.com> 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



view thread (2+ messages)

Message-ID: <18033.1320446223@sss.pgh.pa.us>
Permalink:  ../18033.1320446223@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18033.1320446223@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ramamohan.raju31@gmail.com
  Subject: Re: BUG #6287: Unexpected protocol character during authentication
  In-Reply-To: <18033.1320446223@sss.pgh.pa.us>
  References: <201111042106.pA4L6EeZ084024@wwwmaster.postgresql.org> <18033.1320446223@sss.pgh.pa.us>

* 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