0001 - no changes, but the longer I go the more I'm certain this is something we want to do.
0002- same as 0001
0003 -
Storing the restore function calls in the archive entry hogged a lot of memory and made people nervous. This introduces a new function pointer that generates those restore SQL calls right before they're written to disk, thus reducing the memory load from "stats for every object to be dumped" to just one object. Thanks to Nathan for diagnosing some weird quirks with various formats.
0004 -
This replaces the query in the prepared statement with one that batches them 100 relations at a time, and then maintains that result set until it is consumed. It seems to have obvious speedups.
Another rebase, and a new patch 0005 to have pg_dump fetch and restore relallfrozen for dbs of version 18 and higher. With older versions we omit relallfrozen and let the import function assign the default.