Re: Unix domain socket - Mailing list pgsql-odbc

From Dave Page
Subject Re: Unix domain socket
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E472B6D8@ratbert.vale-housing.co.uk
Whole thread Raw
In response to Unix domain socket  (Ramon Danieli <ramond@post.tau.ac.il>)
Responses Re: Unix domain socket
List pgsql-odbc

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Ramon Danieli
> Sent: 23 February 2005 22:15
> To: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Unix domain socket
>
> 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?

Hmm, did even realise it had crept in there. Well to enable it you will
need to define the HAVE_UNIX_SOCKETS macro when you compile. Does it
then work? As for why it's done the way it is, I have no idea - it was
committed by Hiroshi Inoue, so he'd need to answer that - unfortunately
though, he no longer works on psqlODBC.

Regards, Dave.

pgsql-odbc by date:

Previous
From: lothar.behrens@lollisoft.de
Date:
Subject: (Fwd) SQLSetPos problem under Linux
Next
From: Richard Huxton
Date:
Subject: Re: (Fwd) SQLSetPos problem under Linux