X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1E21CD1B520 for ; Thu, 2 Oct 2003 23:44:01 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 99749-09 for ; Thu, 2 Oct 2003 20:43:15 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 3A6A6D1B508 for ; Thu, 2 Oct 2003 20:43:12 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 3961535429; Thu, 2 Oct 2003 16:43:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 384C635427; Thu, 2 Oct 2003 16:43:00 -0700 (PDT) Date: Thu, 2 Oct 2003 16:43:00 -0700 (PDT) From: Stephan Szabo To: Anna Kanevsky Cc: "'pgsql-admin@postgresql.org'" Subject: Re: Delete accident In-Reply-To: <29E95A5D2F22D511862E00508BC2183BBF1F44@aahebdc> Message-ID: <20031002164129.B76566@megazone.bigpanda.com> References: <29E95A5D2F22D511862E00508BC2183BBF1F44@aahebdc> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/36 X-Sequence-Number: 10597 On Tue, 30 Sep 2003, Anna Kanevsky wrote: > This is an almost embarrassing question, but I managed to delete all rows > out of one of the tables by making a little typo in the WHERE statement. > Is there any way to restore these? the db was NOT vacuumed after that. but > then, it wasn't backed up before either. Potentially, if vacuum wasn't run, you may be able to go back, find the transaction that did the delete and mark it as having rolled back, but I don't really know the details necessary to make that work.