Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A10C7B5DC49 for ; Mon, 29 Aug 2011 09:33:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 61787-01 for ; Mon, 29 Aug 2011 12:33:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 9D61CB5DC3E for ; Mon, 29 Aug 2011 09:33:11 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 29 Aug 2011 07:33:10 -0500 Message-Id: <4E5B40B302000025000407CF@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 29 Aug 2011 07:33:07 -0500 From: "Kevin Grittner" To: , Subject: Re: Get data back after drop Command Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201108/222 X-Sequence-Number: 38209 Adarsh Sharma wrote: > Today by mistake I issued a drop table statement in Postgresql > database. Now is it possible to get that data back through WAL. > archive_mode = on > archive_command = '' If you were doing Point In Time Recovery (PITR) backups, you could restore your last base backups and recover using WAL files up to just before the table was dropped: http://www.postgresql.org/docs/8.4/interactive/continuous-archiving.html#BACKUP-PITR-RECOVERY The empty archive_command suggests that you're not doing proper PITR style backups, so it appears the answer to your question is "No." There is a chance that an expert might still be able to recover some of the data. That's likely to be time-consuming and expensive, but if the table is not backed up and has sufficient value to you, it might be worth it. -Kevin