Re: Experimenting with hash tables inside pg_dump
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2021-10-22T00:22:56Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > Did you measure runtime of pg_dump, or how much CPU it used? I was looking mostly at wall-clock runtime, though I did notice that the CPU time looked about the same too. > I think a lot of > the time the backend is a bigger bottleneck than pg_dump... Yeah, that. I tried doing a system-wide "perf" measurement, and soon realized that a big fraction of the time for a "pg_dump -s" run is being spent in the planner :-(. I'm currently experimenting with PREPARE'ing pg_dump's repetitive queries, and it's looking very promising. More later. regards, tom lane
Commits
-
In pg_dump, use simplehash.h to look up dumpable objects by OID.
- 92316a4582a5 15.0 landed
-
Fix frontend version of sh_error() in simplehash.h.
- 974aedcea46d 15.0 landed
- 8cee4be6dc93 14.1 landed
- 2e01d050d989 13.5 landed