V
V
Vadim2021-05-14 19:48:57
PostgreSQL
Vadim, 2021-05-14 19:48:57

What format for pg_dump do you recommend?

Hello everyone,

you need to re-upload the entire database (with everything that is) from one PostgreSQL (12.4) instance to AWS Aurora PostgreSQL compatible ... which format for pg_dump do you recommend custom or plain text and why?

AWS DB Migration is not suitable!

Have a great weekend,
Vadim

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Akina, 2021-05-14
@Viji

The more "dissimilar" the servers are, the simpler the dump format should be.
But in any case, you need to start simply with a compatibility check. Make a test database, a couple of tables with FK, one function, one procedure, one trigger... then back up both in script and archive formats and check how the recovery goes on your specific host.

G
galaxy, 2021-05-14
@galaxy

Not important. Whichever is more convenient, use this one.
Customs and directory formats allow you to restore objects selectively, support parallel restore, and are compressed by default. Machine architecture and OS are irrelevant.
Problems can only be when restoring on a server with an older (major) version of PG, then it is better to use plain (even in this case there may be difficulties). When uploading to the new version, there should be no problems.

K
ky0, 2021-05-14
@ky0

Binary (custom) format supports parallel restoring and dump takes less time due to compression. If the base is small, then these advantages, of course, are not decisive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question