Re: Multi-column distinctness.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Multi-column distinctness.
Date: 2015-10-21 01:14:26
Message-ID: CANP8+jJBx0XNsnMHUYeC+V_jBryQhY_Wcy+LsgHNaHDNDgOcow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 20 October 2015 at 21:06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> I am getting more attracted to your suggestion of making these things
> stand-alone commands "CREATE STATISTICS" and "DROP STATISTICS". Not only
> does that fix the syntactic problems of shoehorning them into ALTER TABLE,
> but it would be possible to design the syntax to allow for straightforward
> extension to multiple-table cases. Even if we don't know what we'd do
> with that just yet, it seems to me like a possible future extension that
> we should keep in mind. And anything based on ALTER TABLE just cannot do
> that reasonably.
>

+1

Good argument, so now I understand and agree with Tomas' original suggestion

So consider
>
> CREATE STATISTICS name ON table(columnlist) [, table(columnlist) ...]
> [ WITH options ]
>

Seems good

--
Simon Riggs http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-10-21 01:44:52 Re: checkpoint_segments upgrade recommendation?
Previous Message Tom Lane 2015-10-21 01:06:12 Re: Multi-column distinctness.