From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make the name optional in CREATE STATISTICS.
Date: Thu, 21 Jul 2022 18:25:08 +0000
Message-ID: <E1oEarD-000c5h-CY@gemulon.postgresql.org> (raw)
Make the name optional in CREATE STATISTICS.
This allows users to omit the statistics name in a CREATE STATISTICS
command, letting the system auto-generate a sensible, unique name,
putting the statistics object in the same schema as the table.
Simon Riggs, reviewed by Matthias van de Meent.
Discussion: https://postgr.es/m/CANbhV-FGD2d_C3zFTfT2aRfX_TaPSgOeKES58RLZx5XzQp5NhA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/624aa2a13bd02dd584bb0995c883b5b93b2152df
Modified Files
--------------
doc/src/sgml/ref/create_statistics.sgml | 12 +++--
src/backend/commands/statscmds.c | 7 ++-
src/backend/parser/gram.y | 13 +++--
src/test/regress/expected/stats_ext.out | 87 +++++++++++++++++++--------------
src/test/regress/sql/stats_ext.sql | 20 +++++---
5 files changed, 86 insertions(+), 53 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: dean.a.rasheed@gmail.com
Subject: Re: pgsql: Make the name optional in CREATE STATISTICS.
In-Reply-To: <E1oEarD-000c5h-CY@gemulon.postgresql.org>
References: <E1oEarD-000c5h-CY@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