Add macro for maximum statistics target
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 3 Jul 2023 05:09:22 +0000 (07:09 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 3 Jul 2023 05:18:57 +0000 (07:18 +0200)
commit7a7f60aef8bf86b1a94908e20edd107fa9da4f3d
treec721557e084b0f60ddcf310246ad71409e527ec8
parent3ee2f25d21faa123dc5bb2886a00a54bdddd1c3e
Add macro for maximum statistics target

The number of places where 10000 was hardcoded had grown a bit beyond
the comfort level.  Introduce a macro MAX_STATISTICS_TARGET instead.

Reviewed-by: Tomas Vondra <tomas.vondra@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/d6069765-5971-04d3-c10d-e4f7b2e9c459%40eisentraut.org
src/backend/commands/statscmds.c
src/backend/commands/tablecmds.c
src/backend/statistics/extended_stats.c
src/backend/utils/misc/guc_tables.c
src/include/catalog/pg_attribute.h
src/include/commands/vacuum.h
src/include/statistics/statistics.h