Re: Forbid referencing columns by names in ALTER INDEX ... SET STATISTICS

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Forbid referencing columns by names in ALTER INDEX ... SET STATISTICS
Дата
Msg-id CA+TgmoaRfm_byKQR7A1CrOs0Z9QiLZYmYHe2b8Jq909iLLMtoQ@mail.gmail.com
обсуждение исходный текст
Ответ на Forbid referencing columns by names in ALTER INDEX ... SETSTATISTICS  (Yugo Nagata <nagata@sraoss.co.jp>)
Ответы Re: Forbid referencing columns by names in ALTER INDEX ... SETSTATISTICS  (Yugo Nagata <nagata@sraoss.co.jp>)
Список pgsql-hackers
On Wed, Jun 27, 2018 at 9:22 AM, Yugo Nagata <nagata@sraoss.co.jp> wrote:
> According to the syntax in ALTER INDEX doc, a column should be specified by
> column number as discussed in [1]. However, the current code still allows to
> use an internal column name like "expr". Is this intentional?
>
> Although it is harmless, how about forbiding this undocumented and
> unuseful behavior. The attached patch does it.

If it's harmless, why prohibit it?

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


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

Предыдущее
От: Alexander Kuzmenkov
Дата:
Сообщение: Re: Generating partitioning tuple conversion maps faster
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Tips on committing