pgsql: Add macro for maximum statistics target - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Add macro for maximum statistics target
Date
Msg-id E1qGC4A-001eKI-EQ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7a7f60aef8bf86b1a94908e20edd107fa9da4f3d

Modified Files
--------------
src/backend/commands/statscmds.c        | 4 ++--
src/backend/commands/tablecmds.c        | 5 +++--
src/backend/statistics/extended_stats.c | 2 +-
src/backend/utils/misc/guc_tables.c     | 2 +-
src/include/catalog/pg_attribute.h      | 2 +-
src/include/commands/vacuum.h           | 7 +++++++
src/include/statistics/statistics.h     | 4 ++--
7 files changed, 17 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Remove support for OpenSSL 1.0.1
Next
From: Peter Eisentraut
Date:
Subject: pgsql: cirrus/freebsd: define ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS