Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 819EA64FEE7 for ; Wed, 17 Dec 2008 22:41:15 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 12910-03 for ; Wed, 17 Dec 2008 22:41:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from fed1rmmtao105.cox.net (fed1rmmtao105.cox.net [68.230.241.41]) by mail.postgresql.org (Postfix) with ESMTP id AE2D464FEAF for ; Wed, 17 Dec 2008 22:41:12 -0400 (AST) Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao105.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081218024051.SQGY8485.fed1rmmtao105.cox.net@fed1rmimpo02.cox.net> for ; Wed, 17 Dec 2008 21:40:51 -0500 Received: from [192.168.1.3] ([68.3.141.221]) by fed1rmimpo02.cox.net with bizsmtp id sSgq1a0024moMiU04SgqmM; Wed, 17 Dec 2008 21:40:50 -0500 X-Authority-Analysis: v=1.0 c=1 a=4TCobotZRiWEVBHZPBMA:9 a=E4TrFaOUN8kMHxlzeSsA:7 a=ZH5HjJD26GPkeavrvHCDYtnF-wAA:4 a=6qQSkXpCXGcA:10 a=cymkAsTbCWcA:10 a=gi0PWCVxevcA:10 X-CM-Score: 0.00 Message-ID: <4949B82A.70502@eldocomp.com> Date: Wed, 17 Dec 2008 19:40:42 -0700 From: Naomi Walker User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: pg_xlog References: <4949AC74.4090103@eldocomp.com> In-Reply-To: <4949AC74.4090103@eldocomp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/137 X-Sequence-Number: 30970 I think i'll answer my own question, after. Since this is a write ahead log, the only thing contained would be the "Drop Table" statement. Since there are many databases in this instance, we would have to restore the instance somewhere else, replaying until just before the drop, then extract what we need. Sigh. Naomi > Everyone, > > - > > The guys on one of our servers deleted a table and need the data from > it. Somehow, our backup job did not run. > We have the pg_xlog that should (may) contain the deleted data. We > need to know if there is a way to extract the > records that were deleted from the file and write them back into the > table. Is there a way to retrieve the data from > the pg_xlog? > > This is a server running x86 Solaris 10, postgres 8.2.4. > > > Naomi > > > > > > > > -- ------------------------------------------------------------------------ Naomi Walker Chief Information Officer Eldorado Computing, Inc nwalker@eldocomp.com ---An EDS Company 602-604-3100 ------------------------------------------------------------------------ Hard things are put in our way, not to stop us, but to call out our courage and strength. -- Anonymous ------------------------------------------------------------------------