Unix Technical Forum

postgresql-odbc vs. unixODBC

This is a discussion on postgresql-odbc vs. unixODBC within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> hi, does anybody know what the differences are between postgresql-odbc and unixODBC? because connection via postgresql-odbc work and via ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 02:27 AM
Rainer Hochreiter
 
Posts: n/a
Default postgresql-odbc vs. unixODBC

hi,

does anybody know what the differences are between postgresql-odbc
and unixODBC? because connection via postgresql-odbc work and
via unixODBC fails!

here some infos:

my /etc/odbcinst.ini:
---------------------
[PostgreSQL]
Description = ODBC for PostgreSQL (postgresql-odbc)
Driver = /usr/lib/psqlodbc.so
FileUsage = 1

[PostgreSQL2]
Description = ODBC for PostgreSQL (unixODBC)
Driver = /usr/lib/libodbcpsql.so
FileUsage = 1

my /etc/odbc.ini:
-----------------
[DB1]
Description = PostgreSQL
Driver = PostgreSQL
Database = DB1
ServerName = localhost
UserName = icp
Port = 5432

[DB2]
Description = PostgreSQL
Driver = PostgreSQL2
Database = DB2
ServerName = localhost
UserName = icp
Port = 5432

my /var/lib/pgsql/data/pg_hba.conf:
-----------------------------------
local DB1 uid md5
local DB2 uid md5

isql DB1 uid pwd => work fine
isql DB2 uid pwd => results in "[ISQL]ERROR: Could not SQLConnect"

any hints welcome!

cheers, rainer


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 02:27 AM
Hajo Kirchhoff
 
Posts: n/a
Default Re: postgresql-odbc vs. unixODBC

Hi,


>
> does anybody know what the differences are between postgresql-odbc
> and unixODBC? because connection via postgresql-odbc work and
> via unixODBC fails!


you should check the driver versions. I think I remember seeing a post
that said that the postgreSQL unixODBC is an outdated version of the
postgreSQL ODBC driver that was included by the unixODBC team.

At any rate I'd always use the latest driver available directly from the
ODBC team here.

Hajo


>
> here some infos:
>
> my /etc/odbcinst.ini:
> ---------------------
> [PostgreSQL]
> Description = ODBC for PostgreSQL (postgresql-odbc)
> Driver = /usr/lib/psqlodbc.so
> FileUsage = 1
>
> [PostgreSQL2]
> Description = ODBC for PostgreSQL (unixODBC)
> Driver = /usr/lib/libodbcpsql.so
> FileUsage = 1
>
> my /etc/odbc.ini:
> -----------------
> [DB1]
> Description = PostgreSQL
> Driver = PostgreSQL
> Database = DB1
> ServerName = localhost
> UserName = icp
> Port = 5432
>
> [DB2]
> Description = PostgreSQL
> Driver = PostgreSQL2
> Database = DB2
> ServerName = localhost
> UserName = icp
> Port = 5432
>
> my /var/lib/pgsql/data/pg_hba.conf:
> -----------------------------------
> local DB1 uid md5
> local DB2 uid md5
>
> isql DB1 uid pwd => work fine
> isql DB2 uid pwd => results in "[ISQL]ERROR: Could not SQLConnect"
>
> any hints welcome!
>
> cheers, rainer
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>



--






--------------------------------------------
Lit Window Library - Speed up GUI coding 10x
http://www.litwindow.com/library?src=ml

wxVisualSetup - integrate wxWidgets into Visual Studio .NET
http://www.litwindow.com/Products/products.html?src=ml

BugLister - Defect Tracker
http://www.litwindow.com/buglister?src=ml

Tips & Tricks for wxWidgets & MS Visual Studio
http://www.litwindow.com/Knowhow/knowhow.html?src=ml


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:55 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com