Re: [HACKERS] Re: unixODBC again :-( - Mailing list pgsql-odbc

From Peter Eisentraut
Subject Re: [HACKERS] Re: unixODBC again :-(
Date
Msg-id Pine.LNX.4.30.0101242117000.1469-100000@peter.localdomain
Whole thread Raw
In response to Re: [HACKERS] Re: unixODBC again :-(  (Nick Gorham <nick@lurcher.org>)
List pgsql-odbc
Nick Gorham writes:

> Well because the driver does not know where to get the config info
> from,

Then the driver should be fixed to do that, with or without unixODBC.

> libodbcinst.so in unixODBC provides SQLGetPrivateProfileString,
> the location of user and system ini files are defined by this lib, if
> it doesn't do this you may have the situation where the driver manager
> gets information from one ini file and the driver from a different
> one.

--with-odbcinst=DIRECTORY

> > > Add the option to detect a
> > > server name of localhost, and open the unix domain socket,
> >
> > I don't think so.  localhost is a valid host name.
>
> Ok, but don't you think it is worth having some way to get it to use
> UNIX domain sockets instead of TCP ones, for instance if postmaster
> isn't started with a -i ?

Yes, that would be okay, but it's not okay to eliminate a feature to add
another one.

> > We have a general approach to non-standard socket names now.
>
> Great, thats a non problem then, what do you do ?

Pick up DEFAULT_PGSOCKET_DIR from config.h.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-odbc by date:

Previous
From: "Adam Lang"
Date:
Subject: Re: RE: [PATCHES] ODBC Patch for OJs/Large Querys & Rows
Next
From: "Joseph"
Date:
Subject: ODBC/Windows and Rules