Skip site navigation (1) Skip section navigation (2)

Re: F_SETLK is looking worse and worse...

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: F_SETLK is looking worse and worse...
Date: 2000-11-29 16:37:31
Message-ID: Pine.LNX.4.21.0011291731510.796-100000@peter.localdomain (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Tom Lane writes:

> I can only think of one scenario where this is worse than what we have
> now: if someone is running a /tmp-directory-sweeper that is bright
> enough not to remove socket files, it would still zap the interlock
> file, thus potentially allowing a second postmaster to take over the
> socket file.  This doesn't seem like a mainstream problem though.

Red Hat by default cleans out all files under /tmp and subdirectories that
haven't been accesses for 10 days.  I assume other Linux distributions do
similar things.  Red Hat's tmpwatch doesn't ever follow symlinks, though.  
That means you could make /tmp/.s.PGSQL.5432.lock a symlink to
PGDATA/  That might be a good idea in general, since
establishes an easy to examine correspondence between data directory and
port number.

Peter Eisentraut      peter_e(at)gmx(dot)net

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2000-11-29 16:53:13
Subject: Re: F_SETLK is looking worse and worse...
Previous:From: Peter EisentrautDate: 2000-11-29 16:31:12
Subject: Re: Initdb not running on beos

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group