Forbid referencing columns by names in ALTER INDEX ... SETSTATISTICS

Поиск
Список
Период
Сортировка
От Yugo Nagata
Тема Forbid referencing columns by names in ALTER INDEX ... SETSTATISTICS
Дата
Msg-id 20180627222229.7425f272.nagata@sraoss.co.jp
обсуждение исходный текст
Ответы Re: Forbid referencing columns by names in ALTER INDEX ... SET STATISTICS  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hi,

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.

[1] https://www.postgresql.org/message-id/CAPpHfdsSYo6xpt0F%3DngAdqMPFJJhC7zApde9h1qwkdpHpwFisA%40mail.gmail.com

-- 
Yugo Nagata <nagata@sraoss.co.jp>

Вложения

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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: [HACKERS] advanced partition matching algorithm forpartition-wise join
Следующее
От: Jonathan Lemig
Дата:
Сообщение: Re: Name of main process differs between servers (postmaster vs postgres)