From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rasmus Mohr <rmo@Netpointers.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Troubles with WAL and pg_control
Date: Wed, 24 Apr 2002 10:53:39 -0400
Message-ID: <12290.1019660019@sss.pgh.pa.us> (raw)
In-Reply-To: <910513A5A944D5118BE900C04F67CB5A0BFD75@MAIL>
References: <910513A5A944D5118BE900C04F67CB5A0BFD75@MAIL>
Rasmus Mohr <rmo@Netpointers.com> writes:
> Hi, we have serious problem with our postgresql db.
> A staling query were killed and all the WAL files were deleted.
Just for the benefit of onlookers: that was a really BAD idea.
The pg_xlog and pg_clog files are not optional; you *will* regret it
if you decide to delete 'em.
BTW, if you want to kill a runaway query, it's usually sufficient
to do "kill -INT" on the specific backend doing the query. This
executes a query-cancel, which should stop the query fairly quickly
without any damage to the rest of the system.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, rmo@Netpointers.com
Subject: Re: Troubles with WAL and pg_control
In-Reply-To: <12290.1019660019@sss.pgh.pa.us>
References: <910513A5A944D5118BE900C04F67CB5A0BFD75@MAIL> <12290.1019660019@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