X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 52AAE47637A for ; Fri, 25 Apr 2003 10:47:57 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id E040C476376 for ; Fri, 25 Apr 2003 10:47:55 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id h3PEluQ11745; Fri, 25 Apr 2003 10:47:56 -0400 (EDT) From: Bruce Momjian Message-Id: <200304251447.h3PEluQ11745@candle.pha.pa.us> Subject: Re: point-in-time recovery In-Reply-To: <200304252015.15089.mallah@trade-india.com> To: Rajesh Kumar Mallah Date: Fri, 25 Apr 2003 10:47:56 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-26.6 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/352 X-Sequence-Number: 8507 Rajesh Kumar Mallah wrote: > > > Thanks for responding , but i still have > more to discuss. > > On Friday 25 Apr 2003 7:47 pm, Bruce Momjian wrote: > > Rajesh Kumar Mallah wrote: > > > What is this PITR anyway ? > > > > > > when it comes will i be able to > > > > > > 1. reduce by pg_dump times ? > > > 2. can afford to run pg_dump less frequently ? > > > 3. Will be able to rollback committed transactions of past 5 mins? > > > > You can do a dump, > > Do u mean pg_dump here, or some special command > thats doing a quick snapshot dump? You do one pg_dump, the start PITR logging. > > then do continuous logging of all database changes > is this logging happening automatically for i have to give some > special command to start logging? Not sure yet --- we arn't done, but it will probably be a special command. > > > until the next backup. If you crash in the middle of the day, you can > > recover up to the point of the crash. > > say i do not crash but do a > > psql> DELETE from TABLE_NAME ; > DELETE 1021 > psql> Ooops what did i do , damn my last backup is 6 hrs old ?? > > does PITR help me here? Ideally, you will be able to restore to any point you wish, such as before the DELETE. However, I do not know if that control will be implemented in 7.4, but if not, certainly 7.5. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073