X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 59CF3D1B285 for ; Fri, 9 Jul 2004 04:03:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18171-10 for ; Fri, 9 Jul 2004 07:03:12 +0000 (GMT) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id 7A5A4D1B233 for ; Fri, 9 Jul 2004 04:03:09 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-32.mail.demon.net with esmtp (Exim 3.35 #1) id 1BipPY-0004L6-0W; Fri, 09 Jul 2004 08:03:08 +0100 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 740E816BC2; Fri, 9 Jul 2004 08:03:07 +0100 (BST) Message-ID: <40EE432B.5020505@archonet.com> Date: Fri, 09 Jul 2004 08:03:07 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.7 (X11/20040615) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-2?Q?Marek_Nowi=F1ski?= Cc: pgsql-general@postgresql.org Subject: Re: HELP References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/319 X-Sequence-Number: 62918 Marek Nowiński wrote: > I accidentaly deleted over 1.000.000 records from one table in my > database. Is there any way to recover them? Please help me as soon > as possible... > > After the records were deleted, no other operation was made on the > database. In fact, all the postgres services were shut down. > I found a xlog file containing those records but I don't know the > structure of this file. > This is Postgres 7.2.1 on Mandrake 8.1 Well - you'll probably need to wait until a developer can make a suggestion to get your data back. However, I do know enough to say that your data will still be there - so long as no further action takes place you'll be alright. You'll probably want to take a backup of your whole .../data/ directory to be on the safe side. At a guess, it might be enough to rewind your current transaction-id and pg_dump that table, but I'm really out of my depth here. -- Richard Huxton Archonet Ltd