Re: Re: UUNET socket-file-location patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: UUNET socket-file-location patch
Date: 2000-11-15 16:42:43
Message-ID: 13500.974306563@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2000-11-15 17:15:14 Re: Re: UUNET socket-file-location patch
Previous Message Peter Eisentraut 2000-11-15 16:38:12 Re: Re: UUNET socket-file-location patch

Browse pgsql-hackers by date

  From Date Subject
Next Message Alfred Perlstein 2000-11-15 17:04:42 Re: 486 Optimizations...
Previous Message Peter Eisentraut 2000-11-15 16:38:12 Re: Re: UUNET socket-file-location patch