pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Help to restore lost database 2+ messages / 2 participants [nested] [flat]
* Help to restore lost database @ 2002-06-26 01:03 brunormr <brunormr@bol.com.br> 2002-06-26 13:42 ` Re: Help to restore lost database Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: brunormr @ 2002-06-26 01:03 UTC (permalink / raw) To: pgsql-admin I erased the files (000000000000 and 000000000001) that were im the pg_xlog folder into the data directory of pgsql. So when I started the server it gave me the message: DEBUG: database system was shut down at 2002-06-25 16:09:46 BRT DEBUG: open(logfile 0 seg 0) failed: No such file or directory DEBUG: Invalid primary checkPoint record DEBUG: open(logfile 0 seg 0) failed: No such file or directory DEBUG: Invalid secondary checkPoint record FATAL 2: Unable to locate a valid CheckPoint record postmaster: Startup proc 2649 exited with status 512 - abort 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? Thanks... Bruno __________________________________________________________________________ AcessoBOL, só R$ 9,90! O menor preço do mercado! Assine já! http://www.bol.com.br/acessobol ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Help to restore lost database 2002-06-26 01:03 Help to restore lost database brunormr <brunormr@bol.com.br> @ 2002-06-26 13:42 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2002-06-26 13:42 UTC (permalink / raw) To: brunormr <brunormr@bol.com.br>; +Cc: pgsql-admin "brunormr" <brunormr@bol.com.br> 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-06-26 13:42 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2002-06-26 01:03 Help to restore lost database brunormr <brunormr@bol.com.br> 2002-06-26 13:42 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox