Add macro for maximum statistics target
Peter Eisentraut <peter@eisentraut.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/statscmds.c | modified | +2 −2 |
| src/backend/commands/tablecmds.c | modified | +3 −2 |
| src/backend/statistics/extended_stats.c | modified | +1 −1 |
| src/backend/utils/misc/guc_tables.c | modified | +1 −1 |
| src/include/catalog/pg_attribute.h | modified | +1 −1 |
| src/include/commands/vacuum.h | modified | +7 −0 |
| src/include/statistics/statistics.h | modified | +2 −2 |
Discussion
- several attstattarget-related improvements 4 messages · 2023-06-28 → 2023-07-03