I am trying to put together a means for resetting a (large, populated) postgreSQL database to a known state between integration tests.
I've been reading up on postgres's database recovery features, and it looks like it's possible to restore to a specific point in time. But the documents are aimed at recovering from a crash and losing as little data as possible in the process. It also seems to require shutting down the database to do any data recovery.
Is it possible to restore a postgreSQL database after a small number of changes (no more than 1 user would create in a few minutes of interaction with the app) to a state just before those stages, without having to stop and restart the database?