Re: Re: UUNET socket-file-location patch

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 17:15:14
Message-ID: Pine.LNX.4.21.0011151810550.779-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers 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(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2000-11-15 17:54:34 Re: Re: UUNET socket-file-location patch
Previous Message Tom Lane 2000-11-15 16:42:43 Re: Re: UUNET socket-file-location patch

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Samplonius 2000-11-15 17:27:48 Re: Re: [GENERAL] PHPBuilder article -- Postgres vs MySQL
Previous Message Alfred Perlstein 2000-11-15 17:04:42 Re: 486 Optimizations...