pg_dump: prepare attribute stats query. Follow precedent in pg_dump for preparing queries to improve performance. Also, simplify the query by removing unnecessary joins.
Reviewed-by: Tom Lane <[email protected]> Reported-by: Andres Freund <[email protected]> Co-authored-by: Corey Huinker <[email protected]> Co-authored-by: Jeff Davis <[email protected]> Discussion: https://postgr.es/m/CADkLM=drmc6t8gp9gvf6y6e_r5echqjmaah_vpyih_zmiq0...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/6ee3b91bad269b8f1acee38607bd17923efd6e06 Modified Files -------------- src/bin/pg_dump/pg_backup.h | 1 + src/bin/pg_dump/pg_dump.c | 123 ++++++++++++++++++++------------------------ 2 files changed, 58 insertions(+), 66 deletions(-)
