Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id E6A599FB424 for ; Tue, 12 Jun 2007 09:25:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 11545-01 for ; Tue, 12 Jun 2007 09:25:32 -0300 (ADT) X-Greylist: delayed 00:32:05.272475 by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 8FC999FB5C0 for ; Tue, 12 Jun 2007 09:25:32 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail2.rossmann.de (mail2.rossmann.de [194.140.231.2]) by svr4.postgresql.org (Postfix) with ESMTP id 353C95AF03F for ; Tue, 12 Jun 2007 11:53:26 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail2.rossmann.de (Postfix) with ESMTP id 7CD0F35C002; Tue, 12 Jun 2007 13:53:22 +0200 (CEST) Received: from mail2.rossmann.de ([127.0.0.1]) by localhost (mail2.rossmann.de [127.0.0.1]) (amavisd-new, port 10042) with ESMTP id 18578-06; Tue, 12 Jun 2007 13:53:20 +0200 (CEST) Received: from sv-7.intern.rossmann.de (unknown [10.100.0.4]) by mail2.rossmann.de (Postfix) with ESMTP id 2F40635C001; Tue, 12 Jun 2007 13:53:20 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Re: How to restore updated records Date: Tue, 12 Jun 2007 13:53:20 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] How to restore updated records Thread-Index: AcesU2sY49FiwD2OS7WQNfQkMHHe3wAlBZLg References: <1181583306.d9d10231a3c6c@mail.bg> From: "Mensinger, Oliver" To: , X-Virus-Scanned: amavisd-new at rossmann.de X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/100 X-Sequence-Number: 25768 Ivan, if you have configured WAL archiving, you may want to look at = http://www.postgresql.org/docs/8.1/static/backup-online.html, especially = paragraph '23.3.4. Timelines'. List: Maybe someone already hacked the postmaster to extract deleted = records?! HTH, Oliver. -----Urspr=A8=B9ngliche Nachricht----- Von: pgsql-admin-owner@postgresql.org = [mailto:pgsql-admin-owner@postgresql.org] Im Auftrag von zz_11@mail.bg Gesendet: Montag, 11. Juni 2007 19:35 An: pgsql-admin@postgresql.org Betreff: [ADMIN] How to restore updated records Hi all. Sorry for my problem. I am using pg on ~100 servers fro 5 y. without any problems, but this time I make a big mistake. A have a table tasks with about 20000 records. The table have ID as pk and some other fields. I typed : update tasks set c1=3D'sss'; instead update tasks setc1=3D'sss' where id=3D10; And the pg updated all my table tasks. I do not have any backup on this table. Exists any way to restore the data> After the mistake I stopped to execute any commands to this database and also I DO NOT HAVE running vacuum, vacuum analyze ot vacuum full analyze on this table. I know pg stores the old copy of data, but I do not have any idea how to restore this deleted records. Pls., point me to any solution for this problem. Many thanks and best regards, ivan. ----------------------------- SCENA - = =A7=A6=A7=D5=A7=DA=A7=DF=A7=E3=A7=E4=A7=D3=A7=D6=A7=DF=A7=E0=A7=E4=A7=E0 = =A7=A2=A7=A6=A7=A9=A7=B1=A7=AD=A7=A1=A7=B4=A7=AF=A7=B0 = =A7=E3=A7=E1=A7=DA=A7=E3=A7=D1=A7=DF=A7=DA=A7=D6 =A7=D9=A7=D1 = =A7=DE=A7=E0=A7=D2=A7=DA=A7=DD=A7=DF=A7=DA = =A7=DC=A7=E0=A7=DE=A7=E5=A7=DF=A7=DA=A7=DC=A7=D1=A7=E8=A7=DA=A7=DA = =A7=DA =A7=E4=A7=D6=A7=E7=A7=DF=A7=E0=A7=DD=A7=E0=A7=D4=A7=DA=A7=DA. http://www.bgscena.com/ ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org