Make name optional in CREATE STATISTICS

From: Simon Riggs <simon(dot)riggs(at)enterprisedb(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Make name optional in CREATE STATISTICS
Date: 2022-05-15 12:20:34
Message-ID: CANbhV-FGD2d_C3zFTfT2aRfX_TaPSgOeKES58RLZx5XzQp5NhA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Currently, CREATE STATS requires you to think of a name for each stats
object, which is fairly painful, so users would prefer an
automatically assigned name.

Attached patch allows this, which turns out to be very simple, since a
name assignment function already exists.

The generated name is simple, but that's exactly what users do anyway,
so it is not too bad.

Tests, docs included.

--
Simon Riggs http://www.EnterpriseDB.com/

Attachment Content-Type Size
create_stats_opt_name.v3.patch application/octet-stream 17.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2022-05-15 12:25:47 Re: [PATCH] New [relation] option engine
Previous Message Alvaro Herrera 2022-05-15 11:35:16 Re: list of TransactionIds