pg_dump: prepare attribute stats query.
authorJeff Davis <[email protected]>
Wed, 26 Feb 2025 03:50:50 +0000 (19:50 -0800)
committerJeff Davis <[email protected]>
Wed, 26 Feb 2025 03:52:11 +0000 (19:52 -0800)
commit6ee3b91bad269b8f1acee38607bd17923efd6e06
tree8217ff1be54a98dd281e695340e692e990dfa418
parent8f427187db78a549af316a69d54f5969db5f4951
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_zMiq0zvA@mail.gmail.com
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_dump.c