[unixODBC-support] Error while connecting through Postgres driverbuilt on Solaris Sparc 64 bit

Nick Gorham nick.gorham at easysoft.com
Mon Sep 3 10:49:07 BST 2007

Abhishek Srivastava wrote:

>I can connect to postgres server through postgres ODBC driver that comes
>with unixODBC.
>When I try connecting through Postgre ODBC driver 8.2.4 built on solaris
>Sparc -64, there is some connection request going to server, that I can read
>from console output of server:
>Here is the output on console of Postgres db:
>bash-3.00$ DEBUG:  forked new backend, pid=15856 socket=7
>LOG:  connection received: host= port=34774
>LOG:  incomplete startup packet
>DEBUG:  proc_exit(0)
>DEBUG:  shmem_exit(0)
>DEBUG:  exit(0)
>DEBUG:  reaping dead processes
>DEBUG:  server process (PID 15856) exited with exit code 0
>I read somewhere that there was similar issue with DB2 and there was some
>fix done in unixODBC, here is the snip from changelog:
>* Allow decoupling of SQLHANDLES between application and driver, there is 
>          a 64bit DB2 where the driver handles are int's but unixODBC uses
>void *.
>          There is a define for DRV_SQLHANDLE in
>DriverManager/drivermanager.h that
>          allows this choice at build time
>I guess similar thing needs to be done here too..
Maybe, but that log says differently

LOG:  incomplete startup packet

I would guess that there is a protocol errorgoing on in there somewhere.

Nick Gorham
Easysoft Limited
http://www.easysoft.com, http://www.unixODBC.org

More information about the unixODBC-support mailing list