Skip site navigation (1) Skip section navigation (2)

Re: Recovery/Rollback question

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Antje(dot)Stejskal(at)ppimedia(dot)de
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Recovery/Rollback question
Date: 2007-02-26 19:44:46
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Mon, 2007-02-26 at 07:57, Antje(dot)Stejskal(at)ppimedia(dot)de wrote:
> Hi,
> I am new to the list and want to say "hello" first.
> We are migrating to Postgres and therefore my question might be simple for
> you.
> We run several application databases under one db server. Now we are looking
> for a mechanism to rollback unwanted user command without impact for other
> databases. Is there a posiibilty to use something like WAL on tablespaces or
> databases not only on db servers?
> Does Postgres provide other utilities for this? Which strategies to you use?
> Scenatio running databases a and b under the server.
> It is now 10 o 'clock, user made a mistake at 8 o'clock  in database a, so
> we need to roll database a back to 8 o'clock, database b keeps current data
> status.
> How do you solve this under Postgres?  Any links to useful docu chapters ?

You can solve it with PITR (point in time recovery) but note that it
will roll back the whole cluster, not just one db in it.  However, PITR
is generally run on a secondary server, so that's ok.  If you're not set
up for PITR, you've asked a little late (i.e. after the fact is too
late) as it needs to be setup ahead of time normally.  You might want to
set up your machine to do PITR, but you need an image of your database
files from before the pebcak* incident.

Your users need to learn how to use transactions.  You can run some
pretty big transactions and roll them back if you don't like the
changes.  Once you commit though, you can't roll it back without using
disaster recovery techniques like PITR.

Look up PITR in the docs, it's a useful piece of kit.

*pebcak:  Problem exist(s|ed) between chair and keyboard.

In response to

pgsql-admin by date

Next:From: Anu Gupta DCSADate: 2007-02-27 08:05:19
Subject: A Reminder : A Survey on Defect Management Practices in Free/Open Source Software
Previous:From: Jason MinionDate: 2007-02-26 19:15:26
Subject: Re: Recovery/Rollback question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group