Make the name optional in CREATE STATISTICS.
authorDean Rasheed <dean.a.rasheed@gmail.com>
Thu, 21 Jul 2022 18:23:13 +0000 (19:23 +0100)
committerDean Rasheed <dean.a.rasheed@gmail.com>
Thu, 21 Jul 2022 18:23:13 +0000 (19:23 +0100)
commit624aa2a13bd02dd584bb0995c883b5b93b2152df
tree9fb20bf9030cd894df4dcf55665a5b51fb0f85b4
parentfa6c230ef23cfe5367cb883fd461580f6a42619d
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
doc/src/sgml/ref/create_statistics.sgml
src/backend/commands/statscmds.c
src/backend/parser/gram.y
src/test/regress/expected/stats_ext.out
src/test/regress/sql/stats_ext.sql