Re: fcntl(SETLK) [was Re: 2nd update on TOAST]

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Alfred Perlstein <bright(at)wintelcom(dot)net>
Cc: Mike Mascari <mascarm(at)mascari(dot)com>, Jan Wieck <JanWieck(at)Yahoo(dot)com>, PostgreSQL HACKERS <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: fcntl(SETLK) [was Re: 2nd update on TOAST]
Date: 2000-07-08 13:40:07
Message-ID: 200007081340.JAA11145@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > That's a good point. I don't think so because the socket will only
> > create for one user. Basically, we don't need something bulletproof
> > here. We just need something to prevent admins from accidentally
> > starting two postmasters on the same port.
>
> Actually I just remebered the issue here, if one wants to start
> postmaster on an alternate port there will be no conflict and
> all hell may break loose.

We already lock the /data directory. This is for the port lock.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Philip Warner 2000-07-08 13:41:30 Re: Re: postgres TODO
Previous Message Alfred Perlstein 2000-07-08 13:28:00 Re: fcntl(SETLK) [was Re: 2nd update on TOAST]