Re: Patch for ODBC driver (look for odbc.ini in more than one

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Ross Thomas <ross(at)grinfinity(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch for ODBC driver (look for odbc.ini in more than one
Date: 2001-12-11 10:09:11
Message-ID: 3C15DB47.7C18FF34@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Ross Thomas wrote:
>
> Since most ODBC drivers and driver managers look for odbc.ini in several
> locations on UNIX systems, it would seem sensible to have the PostgreSQL
> driver do the same thing. (This idea occurred to me after five hours of
> trying to figure out what libpsqlodbc didn't like about my /etc/odbc.ini,
> but that's another story.)
>
> iODBC, for example, does the following:
>
> 1) Checks $ODBCINI
> 2) Checks $HOME/.odbc.ini
> 3) Checks ~/.odbc.ini (where ~ is obtained from struct passwd)
> 4) Checks system-wide odbc.ini (in /etc by default)

IIRC iODBC 3.0.5 has iodbcinst library which knows
where to write/get the profile values.
PostgreSQL 7.2 provides a configure option --with-iodbc
with which PostgreSQL doesn't use gpps.c at all but links
with the installed odbcinst library.

regards,
Hiroshi Inoue

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-12-11 10:33:23 Re: [HACKERS] date formatting and tab-complete patch
Previous Message Serguei Mokhov 2001-12-11 06:19:37 Re: hu.po