Rohit Bajaj
asked on
Deletion of table accidently
Hi,
I accidentally truncated a table in postgresql on staging environment. It had lot of data.
I needed it for testing. Although a small amount of data would also suffice.
But the online portal which generates the data is also down.
So i am kind of stuck.
how do i test. what approaches do you suggest to resolve this or to avoid such things to happen or some alternative plan.
Is it possible to recover table data in postgresql ?
Thanks
I accidentally truncated a table in postgresql on staging environment. It had lot of data.
I needed it for testing. Although a small amount of data would also suffice.
But the online portal which generates the data is also down.
So i am kind of stuck.
how do i test. what approaches do you suggest to resolve this or to avoid such things to happen or some alternative plan.
Is it possible to recover table data in postgresql ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Best to take ste5an's advice.
Build a test data generator... because... there's no real reason to backup a staging/dev database repeatedly, when the data will always be the same.
Also, anytime you must spin up another staging/dev environment, having a test data generator will likely simplify your spin up process.
Build a test data generator... because... there's no real reason to backup a staging/dev database repeatedly, when the data will always be the same.
Also, anytime you must spin up another staging/dev environment, having a test data generator will likely simplify your spin up process.
always make a backup. you may also set read only privilege for certain test users to avoid the risk of data lost.