pgsql: Make stxstattarget nullable

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make stxstattarget nullable
Date: 2024-03-17 11:53:21
Message-ID: E1rlp4q-004H0q-MP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make stxstattarget nullable

To match attstattarget change (commit 4f622503d6d). The logic inside
CreateStatistics() is clarified a bit compared to that previous patch,
and so here we also update ATExecSetStatistics() to match.

Reviewed-by: Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/4da8d211-d54d-44b9-9847-f2a9f1184c76(at)eisentraut(dot)org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/012460ee93c304fbc7220e5b55d9d0577fc766ab

Modified Files
--------------
doc/src/sgml/catalogs.sgml | 28 ++++++++++----------
doc/src/sgml/ref/alter_statistics.sgml | 11 ++++----
src/backend/commands/statscmds.c | 46 +++++++++++++++++++++-----------
src/backend/commands/tablecmds.c | 47 +++++++++++++++++----------------
src/backend/parser/gram.y | 4 +--
src/backend/statistics/extended_stats.c | 4 ++-
src/bin/pg_dump/pg_dump.c | 10 ++++---
src/bin/psql/describe.c | 3 ++-
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_statistic_ext.h | 6 ++---
src/include/nodes/parsenodes.h | 2 +-
11 files changed, 93 insertions(+), 70 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Dean Rasheed 2024-03-17 14:04:41 pgsql: Add RETURNING support to MERGE.
Previous Message Dean Rasheed 2024-03-17 10:23:17 pgsql: Fix EXPLAIN output for subplans in MERGE.