Avoid unnecessary relation stats query in pg_dump.
authorJeff Davis <jdavis@postgresql.org>
Wed, 26 Feb 2025 03:49:49 +0000 (19:49 -0800)
committerJeff Davis <jdavis@postgresql.org>
Wed, 26 Feb 2025 03:51:45 +0000 (19:51 -0800)
commit8f427187db78a549af316a69d54f5969db5f4951
treefc6fd5e685812b47de3513a02a2c33e85cc25842
parent6c349d83b607cfe20a685a5f66a4fa0e24dbe458
Avoid unnecessary relation stats query in pg_dump.

The few fields we need can be easily collected in getTables() and
getIndexes() and stored in RelStatsInfo.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reported-by: Andres Freund <andres@anarazel.de>
Co-authored-by: Corey Huinker <corey.huinker@gmail.com>
Co-authored-by: Jeff Davis <pgsql@j-davis.com>
Discussion: https://postgr.es/m/CADkLM=f0a43aTd88xW4xCFayEF25g-7hTrHX_WhV40HyocsUGg@mail.gmail.com
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h