stxkind only explain two elements. left two unexplained.

Started by jian heover 4 years ago2 messagesdocs
Jump to latest
#1jian he
hejian.mark@gmail.com

PostgreSQL: Documentation: 10: 51.51. pg_statistic_ext
<https://www.postgresql.org/docs/10/catalog-pg-statistic-ext.html>

stxkind : An array containing codes for the enabled statistics kinds;
valid values are: d for n-distinct statistics, f for functional
dependency statistics

select distinct stxkind from pg_statistic_ext ;
return:

stxkind

---------
{d}
{m}
{f}
{e}
(4 rows)

I guess *e *for expression statistics. Since I create the following
statistics object.

create statistics flight_expr1 on(
extract
(month from scheduled_departure at time zone 'Asia/Kolkata')
) from flights;

select stxkind from pg_statistic_ext where stxname = 'flight_expr';

and it return *e.*
But I am not sure what does *m *mean?

It would be better to full explain all these four elements in the doc.

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: jian he (#1)
Re: stxkind only explain two elements. left two unexplained.

On Tuesday, April 5, 2022, Jian He <hejian.mark@gmail.com> wrote:

PostgreSQL: Documentation: 10: 51.51. pg_statistic_ext
<https://www.postgresql.org/docs/10/catalog-pg-statistic-ext.html>

stxkind : An array containing codes for the enabled statistics kinds;
valid values are: d for n-distinct statistics, f for functional
dependency statistics

Read the current version of the docs.

David J.