Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id DEB5E47585D for ; Wed, 24 Apr 2002 10:53:37 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g3OErdF12293; Wed, 24 Apr 2002 10:53:39 -0400 (EDT) To: Rasmus Mohr Cc: "'pgsql-admin@postgresql.org'" Subject: Re: Troubles with WAL and pg_control In-reply-to: <910513A5A944D5118BE900C04F67CB5A0BFD75@MAIL> References: <910513A5A944D5118BE900C04F67CB5A0BFD75@MAIL> Comments: In-reply-to Rasmus Mohr message dated "Wed, 24 Apr 2002 12:43:37 +0200" Date: Wed, 24 Apr 2002 10:53:39 -0400 Message-ID: <12290.1019660019@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/226 X-Sequence-Number: 4114 Rasmus Mohr 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