Re: Make name optional in CREATE STATISTICS - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Make name optional in CREATE STATISTICS
Date
Msg-id CAFj8pRC1F9rFCyy+5S3HkA-vH+psvtSHeAkV-6PUfnZ5k7yh6A@mail.gmail.com
Whole thread Raw
In response to Make name optional in CREATE STATISTICS  (Simon Riggs <simon.riggs@enterprisedb.com>)
List pgsql-hackers


ne 15. 5. 2022 v 14:20 odesílatel Simon Riggs <simon.riggs@enterprisedb.com> napsal:
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.


good idea

Pavel
 
Tests, docs included.

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

pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: make MaxBackends available in _PG_init
Next
From: Bharath Rupireddy
Date:
Subject: Re: Asynchronous and "direct" IO support for PostgreSQL.