Rewrite pg_dump's comment-dumping code to pull over all the comments
in one query, rather than making a separate query for each object that could have a comment. This costs relatively little space (a few tens of K typically) and saves substantial time in databases with many objects. I find it reduces the runtime of 'pg_dump -s regression' by about a third.
Showing
Please register or sign in to comment