CREATE STATISTICS documentation bug

Поиск
Список
Период
Сортировка
От Robert Haas
Тема CREATE STATISTICS documentation bug
Дата
Msg-id CA+TgmoZZEMAqWMAfvLHZnK57SoxOutgvE-ALO94WsRA7zZ7wyQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: CREATE STATISTICS documentation bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: CREATE STATISTICS documentation bug  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-hackers
https://www.postgresql.org/docs/12/sql-createstatistics.html contains
this example command:

CREATE STATISTICS s2 (mcv) ON (a, b) FROM t2;

But that produces:

psql: ERROR:  only simple column references are allowed in CREATE STATISTICS

I think the parentheses around (a, b) just need to be removed.

P.S. I think the fact that we print "psql: " before the ERROR here is
useless clutter.  We didn't do that in v11 and prior and I think we
should kill it with fire.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CREATE STATISTICS documentation bug