From: | Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Forbid referencing columns by names in ALTER INDEX ... SET STATISTICS |
Date: | 2018-06-29 07:43:58 |
Message-ID: | 20180629164358.56aab015.nagata@sraoss.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, 28 Jun 2018 10:26:13 -0400
Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Wed, Jun 27, 2018 at 9:22 AM, Yugo Nagata <nagata(at)sraoss(dot)co(dot)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?
I thought that we should prohibit it because this is not allowed
according to the documented syntax. However, don't we have to be
so rigorous about it?
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
--
Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>
From | Date | Subject | |
---|---|---|---|
Next Message | Sergei Kornilov | 2018-06-29 08:14:19 | Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query |
Previous Message | Yugo Nagata | 2018-06-29 07:14:15 | Re: CREATE TABLE .. LIKE .. EXCLUDING documentation |