From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: CREATE STATISTICS statistic_type documentation |
Date: | 2017-05-25 16:43:23 |
Message-ID: | CAMkU=1ywXsuzmkw-23nDt2aNdWcDQbuZHDp_wOw=WLL32Figuw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, May 25, 2017 at 9:28 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Jeff Janes <jeff(dot)janes(at)gmail(dot)com> writes:
> > The docs for CREATE STATISTICS does not say what happens if the
> > statistic_type clause is omitted. It should probably say that the
> default
> > action is to create both ndistinct and dependencies.
>
> Hmm, I coulda sworn that it did say that somewhere.
>
> Where would you expect to find that?
>
Probably at the end of the paragraph:
"A statistic type to be computed in this statistics object. Currently
supported types are ndistinct, which enables n-distinct statistics, and
dependencies, which enables functional dependency statistics. For more
information, see Section 14.2.2 and Section 68.2."
Something like "If omitted, both ndistinct and dependencies will be
included."
If we invent more types in the future, would we expect those to be
defaulted to as well?
Cheers,
Jeff
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-05-25 17:05:48 | Re: CREATE STATISTICS statistic_type documentation |
Previous Message | Tom Lane | 2017-05-25 16:37:40 | Re: Surjective functional indexes |