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 <t...@sss.pgh.pa.us>
Reported-by: Andres Freund <and...@anarazel.de>
Co-authored-by: Corey Huinker <corey.huin...@gmail.com>
Co-authored-by: Jeff Davis <pg...@j-davis.com>
Discussion: 
https://postgr.es/m/CADkLM=f0a43atd88xw4xcfayef25g-7htrhx_whv40hyocs...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8f427187db78a549af316a69d54f5969db5f4951

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 145 +++++++++++++++++++---------------------------
src/bin/pg_dump/pg_dump.h |   5 +-
2 files changed, 64 insertions(+), 86 deletions(-)

Reply via email to