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(at)sraoss(dot)co(dot)jp>