Re: PostgreSQL crashes with Qmail-SQL

Bruce Momjian <pgman@candle.pha.pa.us>

From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Justin Clift <justin@postgresql.org>, Michael Devogelaere <michael@digibel.be>, Jan Wieck <janwieck@yahoo.com>, Stephan Szabo <sszabo@megazone23.bigpanda.com>, PostgreSQL Hackers Mailing List <pgsql-hackers@postgresql.org>
Date: 2002-01-25T01:05:48Z
Lists: pgsql-hackers
Tom Lane wrote:
> Justin Clift <justin@postgresql.org> writes:
> >> No such file??  Hard to believe that that could happen while the
> >> postmaster was still running.  Unless something else had decided to
> >> delete the socket file from /tmp.  The postmaster certainly would not
> >> do it.
> 
> > This provides an interesting lead.  There's at least one linux
> > distribution which does this.  Part of the cron'd maintenance scripts
> > delete all the files in /tmp, and therefore play havoc....
> 
> Yeah, I do recall that some versions had a tmp-scrubber that didn't make
> any exception for socket files.  But it's kind of a big coincidence to
> assume that would happen just while Michael was running his benchmark.
> Not sure I credit it.

We added some PostgreSQL code to touch the socket file during
checkpoints, and I thought that was in 7.1.

-- 
  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, Pennsylvania 19026