From: | "Merlin Moncure" <mmoncure(at)gmail(dot)com> |
---|---|
To: | "Adrian Moisey" <adrian(at)careerjunction(dot)co(dot)za> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: rollback |
Date: | 2008-07-09 14:35:48 |
Message-ID: | b42b73150807090735w5e3e7d26rbc2bc4db5b7b626a@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, Jul 9, 2008 at 10:32 AM, Adrian Moisey
<adrian(at)careerjunction(dot)co(dot)za> wrote:
> Hi
>
>>>>> I would like to be able to "mark" a point in my postgres database.
>>>>> After that I want to change a few things and "rollback" to that point. Does
>>>>> postgres support such a thing? Is it possible for me to do this?
>>>>
>>>> Well, transactions do that. If you want to do this inside a
>>>> transaction, the term you're looking for is "savepoints".
>>>
>>> I would like to do this globally over the entire DB, is that possible?
>>
>> Sure. You can start a transaction, create tables, drop tables, do
>> inserts and deletes, update some tables, create and delete functions,
>> triggers, views and schemas. After that, rollback. No problem.
>
> Can I do this outside of a transaction?
yes. you need to check out pitr.
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | x asasaxax | 2008-07-09 15:00:05 | Table X its full, what can i do now? |
Previous Message | Adrian Moisey | 2008-07-09 14:32:18 | Re: rollback |