Re: Unix domain socket - Mailing list pgsql-odbc

From Ramon Danieli
Subject Re: Unix domain socket
Date
Msg-id 1109196895.421d005fa3786@webmail2.tau.ac.il
Whole thread Raw
In response to Re: Unix domain socket  ("Dave Page" <dpage@vale-housing.co.uk>)
List pgsql-odbc
While having another look in the sources (08.00.0004) I have found some code
that seems to provide Unix domain sockets connection in socket.c.
This code depends on "HAVE_UNIX_SOCKETS" macro and seems to allow a single hard
coded path (/tmp/...) while providing an empty "ServerName" property in the
connection string.
Can you please explain the nature of this code (it was not available in the
07.03.0200 version)?
What is required (configure, compilation flags, etc`) in order to have this
macro valid (I think that normally this code is not included)?
Why does it have a single hard coded path?
Thanks
Ramon

> > > > it seems that psqlodbc.so does NOT support unix domain
> > sockets at all.
> > > > Is that true?
> > >
> > > Yes. psqlODBC was written on Windows and ported to Unix.
> > No-one ever had the
> > > itch to add uds support.
> > >
> > > Regards, Dave
> > >
> >
> > Right...
> > If we would offer a patch (based on code in the unixODBC PG
> > driver), would you
> > consider to include it sometimes in the (near) future?
> > Thanks, Ramon
> >
>
> Sure, it'll be reviewed and applied if suitable.
>
> Regards, Dave


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


pgsql-odbc by date:

Previous
From: "Dave Page"
Date:
Subject: New snapshot - 08.00.0005
Next
From: lothar.behrens@lollisoft.de
Date:
Subject: (Fwd) SQLSetPos problem under Linux