From: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Make the name optional in CREATE STATISTICS. |
Date: | 2022-07-21 18:25:08 |
Message-ID: | E1oEarD-000c5h-CY@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2022-07-21 18:55:49 | pgsql: doc: use wording "restore" instead of "reload" of dumps |
Previous Message | Bruce Momjian | 2022-07-21 17:58:48 | pgsql: doc: clarify that auth. names are lower case and case-sensitive |