Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id AE4ADB5D80A; Mon, 25 Jul 2011 03:47:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 44076-02; Mon, 25 Jul 2011 06:47:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mail.postgresql.org (Postfix) with ESMTP id 1E47FB5D803; Mon, 25 Jul 2011 03:47:26 -0300 (ADT) Received: by pzk5 with SMTP id 5so24658438pzk.17 for ; Sun, 24 Jul 2011 23:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=IQOrKRTvSCojs7j1CenxxJy4idjrmTxNM+UtSiWBVd0=; b=rmQ2lWHeSWG2swJrjq1LV+aj091uEcKkdUv5TI1i79mAZwMhDnhJ0qmG4lpkH3T+b7 R7SwY1C0UlZTCoy+FoSBEXeO7R7WErKe/RxdntfSPQAIYdPLM1x0v2bdPpV9ci6YHq/S x5ULG6n/5GJtgJEzVea+k/NZ/BX/LiEYOz9oI= Received: by 10.68.58.10 with SMTP id m10mr6739155pbq.359.1311576446506; Sun, 24 Jul 2011 23:47:26 -0700 (PDT) Received: from [192.168.1.2] ([122.170.49.205]) by mx.google.com with ESMTPS id r8sm4294301pbd.92.2011.07.24.23.47.22 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Jul 2011 23:47:24 -0700 (PDT) Subject: Re: Restore database after drop command Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Vibhor Kumar In-Reply-To: <4E2D0F64.2040500@orkash.com> Date: Mon, 25 Jul 2011 12:17:17 +0530 Cc: Vibhor Kumar , pgsql-admin@postgresql.org, pgsql-performance@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <4E2D0F64.2040500@orkash.com> To: Adarsh Sharma X-Mailer: Apple Mail (2.1084) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201107/180 X-Sequence-Number: 37959 On Jul 25, 2011, at 12:08 PM, Adarsh Sharma wrote: > I restore globedatabase from a .sql file on yesterday morning.I insert = some new data in that database. > In the evening, by mistake I issued a drop database globedatabase = command. > Today morning, I restore again the same database from backup (.sql) = file. > My .sql file have data till yesterday morning but I want newly insert = data now. Is it possible. > Is it possible to get the data back till the state before drop = database command. No you won't be able to recover.=20 If you have Online Backup, then PITR would help you. Thanks & Regards, Vibhor Kumar Blogs: http://vibhork.blogspot.com http://vibhorkumar.wordpress.com