snippetsqlModerate
pg_dump format => custom vs sql
Viewed 0 times
sqlcustomformatpg_dump
Problem
There are 2 main formats for pg_dump: custom vs sql. For custom, it's compressed by default, and not readable if you try to open it. But is it faster to dump into this format as opposed to SQL format. Or is the speed the same?
Solution
Time it and see. Which is fastest will depend on the balance of CPU to disk I/O on your system. If CPU is abundant and the disk is slow, a
I strongly recommend using
-Fc dump will be faster. If CPU is very limited and the disk is fast, an SQL dump might be faster.I strongly recommend using
-Fc custom format dumps anyway. They're much more flexible, and while you can convert a custom format dump into an SQL format dump you can't do the reverse easily.Context
StackExchange Database Administrators Q#49045, answer score: 10
Revisions (0)
No revisions yet.