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

From Bruce Momjian
Subject Re: Re: UUNET socket-file-location patch
Date
Msg-id 200011142354.SAA25620@candle.pha.pa.us
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  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Peter Eisentraut <peter_e@gmx.net> writes:
> > Should the parameter determine the directory or the full file name?  I'd
> > go for the former, but it's not a strong case.
> 
> Directory was what I had in mind too, but I'm not sure what Bruce
> actually did ...

I did whatever the patch did.  I believe it is the full path.  I believe
it is used here:

#define UNIXSOCK_PATH(sun,port,defpath) \       ((defpath && defpath[0] != '\0') ? (strncpy((sun).sun_path,
defpath, sizeof((sun).sun_path)),
(sun).sun_path[sizeof((sun).sun_path)-1] = '\0') :
sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)))


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Alfred Perlstein
Date:
Subject: IRC?
Next
From: Hiroshi Inoue
Date:
Subject: Re: SearchSysCacheTuple(Copy)