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

2018-06-29 Thread Yugo Nagata
On Thu, 28 Jun 2018 10:26:13 -0400 Robert Haas wrote: > On Wed, Jun 27, 2018 at 9:22 AM, Yugo Nagata 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

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

2018-06-28 Thread Robert Haas
On Wed, Jun 27, 2018 at 9:22 AM, Yugo Nagata 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

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

2018-06-27 Thread Yugo Nagata
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