pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Nacho Mezzadra <nachomezzadra@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5603: pg_tblspc and pg_twoface directories get deleted when starting up service
Date: Tue, 10 Aug 2010 00:11:36 -0400
Message-ID: <20872.1281413496@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTinSJ3pShVJBAYAKgpjdPWTHd0omBeJ7mwGRxzQi@mail.gmail.com>
References: <201008051846.o75Ikrl0057510@wwwmaster.postgresql.org>
	<AANLkTinSJ3pShVJBAYAKgpjdPWTHd0omBeJ7mwGRxzQi@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Aug 5, 2010 at 2:46 PM, Nacho Mezzadra <nachomezzadra@gmail.com> wrote:
>> PostgreSQL version: 8.3.11
>> Operating system:   Red Hat Enterprise 5.3
>> Description:        pg_tblspc and pg_twoface directories get deleted when
>> starting up service

> This is pretty scary, but it's a little hard to believe that Red Hat
> would ship a script which had even the faintest chance of obliterating
> two critical directories.  Especially since the guy who does the
> packaging of PostgreSQL over thereabouts is our most knowledgeable,
> experienced, and prolific committer.  So I suspect you've a (broken)
> custom script, or a cron job that's doing something evil, or some
> other weirdness that is specific to your installations, but you
> haven't provided enough details to speculate in detail (for example,
> perhaps you could reply to the list and post a copy of the script you
> think is doing this).

Well, I have to disclaim credit/blame for this, because Red Hat has
never shipped PG 8.3.anything for RHEL-5.  Possibly the OP is running
Devrim's or Command Prompt's RPMs.  That said, the initscript Devrim
uses looks just about like mine, and there's no chance whatever that it
would selectively delete portions of what's under $PGDATA.  I have to
think that there's a loose cannon somewhere else in the OP's system.
We have for example seen some very unfortunate behavior in the past
when the data directory was located on a slow-to-mount NFS server.
(I have no reason to think that that's exactly what this problem is;
I just cite it to illustrate the kind of thing to be looking for.)

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <20872.1281413496@sss.pgh.pa.us>
Permalink:  ../20872.1281413496@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20872.1281413496@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, nachomezzadra@gmail.com
  Subject: Re: BUG #5603: pg_tblspc and pg_twoface directories get deleted when starting up service
  In-Reply-To: <20872.1281413496@sss.pgh.pa.us>
  References: <201008051846.o75Ikrl0057510@wwwmaster.postgresql.org> <AANLkTinSJ3pShVJBAYAKgpjdPWTHd0omBeJ7mwGRxzQi@mail.gmail.com> <20872.1281413496@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox