N
N
Nikolai Savelyev2018-05-06 14:46:45
PostgreSQL
Nikolai Savelyev, 2018-05-06 14:46:45

How to make a partial copy of a postgres database?

There is a postgres database in production, earlier for development, they either manually recreated the structure and filled it with fake data, or deployed a full copy.
But the process is underway, more and more tasks for testing and implementing new features appear, I would like to work with real data, and the database size of 500GB does not allow you to quickly make copies.
Are there any ways or tools to do a partial database dump?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2018-05-06
@ky0

Obviously, you need to somehow partition the data according to the desired attribute, thereby reducing the size, or create a small snapshot once and then apply the same changes to it as to production.
In general, it is strange that you have to recreate something for development - it usually happens the other way around, first innovations are rolled onto the development and test bases and only then on to production.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question