Re: Re: UUNET socket-file-location patch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: UUNET socket-file-location patch
Date
Msg-id 13500.974306563@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: UUNET socket-file-location patch  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Re: UUNET socket-file-location patch
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> #define UNIXSOCK_PATH(sun,port,defpath) \
>     snprintf((sun).sun_path, sizeof((sun).sun_path), "%s/.s.PGSQL.%d", \
>              (defpath), (port))

> and make "/tmp" the default in guc.c.

No, because this has to work on the client side too.  The default path
*must* be determined at compile time, or clients and servers will be
unable to find each other.

I wouldn't object to having "/tmp" be given as a macro PG_STD_SOCKET_DIR
in config.h, making it potentially configurable on a site-wide basis,
but that's as far as I think we can go.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Re: UUNET socket-file-location patch
Next
From: Alfred Perlstein
Date:
Subject: Re: 486 Optimizations...