pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add macro for maximum statistics target
Date: Mon, 03 Jul 2023 05:25:38 +0000
Message-ID: <E1qGC4A-001eKI-EQ@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1qGC4A-001eKI-EQ@gemulon.postgresql.org>
Permalink:  ../E1qGC4A-001eKI-EQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qGC4A-001eKI-EQ@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add macro for maximum statistics target
  In-Reply-To: <E1qGC4A-001eKI-EQ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox