Rollback to a specific moment with PostgreSQL

Posted by mada54 on Stack Overflow See other posts from Stack Overflow or by mada54
Published on 2010-04-18T13:27:56Z Indexed on 2010/04/18 13:33 UTC
Read the original article Hit count: 217

Filed under:

Hi, Is there a way to rollback to a specific starting point. Im looking for something like this.

Start specific_point;

Now after this, an other application connected with the SAME login will insert & delete datas (webservices with crud operations) for about 2 minutes doing tests. Each webservice call is declared as a transaction with Spring Ws.

After that i want to rollback to the specific_point to have a clean database to a known previous state.

I was thinking that ROLLBACK TO SAVEPOINT foo; was the solution but not unfortunately?

Any idea ?

Configuration: PostgreSQL 8.4 / windows XP

Regards

© Stack Overflow or respective owner

Related posts about postgresql