Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 806AF476AA3 for ; Wed, 26 Jun 2002 11:12:21 -0400 (EDT) Mailbox-Line: From tgl@sss.pgh.pa.us Wed Jun 26 11:12:21 2002 Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 997AD476ACA for ; Wed, 26 Jun 2002 09:42:28 -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 g5QDgNv01836; Wed, 26 Jun 2002 09:42:24 -0400 (EDT) To: "brunormr" Cc: pgsql-admin@postgresql.org Subject: Re: Help to restore lost database In-reply-to: References: Comments: In-reply-to "brunormr" message dated "Tue, 25 Jun 2002 23:03:01 -0200" Date: Wed, 26 Jun 2002 09:42:23 -0400 Message-ID: <1833.1025098943@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-4.8 required=5.0 tests=IN_REP_TO,X_NOT_PRESENT,TO_LOCALPART_EQ_REAL version=2.30 X-Spam-Level: X-Archive-Number: 200206/209 X-Sequence-Number: 4643 "brunormr" writes: > I erased the files (000000000000 and > 000000000001) that were im the pg_xlog > folder into the data directory of > pgsql. A piece of advice: if you don't know what a file is for, don't remove it. > I have all the other files of the > database and I want to restore the > data, but I hadn't made a backup (a > dump). Is there a way to restore the > files on the pg_xlog with the other > files or to save the data from the > database? If the postmaster was shut down at the time, then running contrib/pg_resetxlog should get you out of trouble. regards, tom lane