C
C
chelius_ua2017-05-04 12:11:57
PostgreSQL
chelius_ua, 2017-05-04 12:11:57

What is the best way to implement data archiving?

Hello!
I want to ask for advice. There is a DB in which new schemes with identical structure of tables constantly appear. There comes a time when the user temporarily does not need his scheme and there is a desire to temporarily "archive" such schemes.
Now, there is an idea to implement this through pg_dump and, if necessary, pg_restore is launched, which rolls everything back.
What do you think about this option?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
terrier, 2017-05-04
@terrier

Well, yes it will work, but the method itself is very brutal. It would be more flexible to transfer the archive tables to a remote server and if you need access to the archive or restore from the archive, access it through something like pl / proxy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question