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

From Peter Eisentraut
Subject Re: Re: UUNET socket-file-location patch
Date
Msg-id Pine.LNX.4.21.0011151810550.779-100000@peter.localdomain
Whole thread Raw
In response to Re: Re: UUNET socket-file-location patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Re: UUNET socket-file-location patch
List pgsql-hackers
Tom Lane 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.

The only difference between your snippet and mine is that yours sets the
default to "" and interprets it as "/tmp" when it is used, whereas mine
sets the default to "/tmp" to begin with.  Clients don't see the
difference.

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



pgsql-hackers by date:

Previous
From: Alfred Perlstein
Date:
Subject: Re: 486 Optimizations...
Next
From: Peter Eisentraut
Date:
Subject: Re: Re: Commit finished?