From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Langote <amitlangote09@gmail.com>
Cc: 张文升 <wensheng.zhang@qunar.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: gram.y comment issue
Date: Wed, 09 Mar 2016 10:31:06 -0500
Message-ID: <9732.1457537466@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+HiwqE=_VkCvzUATY5GUTwiBFbXRpQzKLg4yjGm7Hn1=c4Wyg@mail.gmail.com>
References: <56DFBCD0.7050909@qunar.com>
<CA+HiwqE=_VkCvzUATY5GUTwiBFbXRpQzKLg4yjGm7Hn1=c4Wyg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Amit Langote <amitlangote09@gmail.com> writes:
> On Wed, Mar 9, 2016 at 3:04 PM, 张文升 <wensheng.zhang@qunar.com> wrote:
>> The gram.y includes the line(line:1965):
>> /* ALTER TABLE <name> ALTER [COLUMN] <colname> SET ( column_parameter =
>> value [, ... ] ) */
>> ALTER opt_column ColId RESET reloptions
>> The comment has the word "SET", but I think that's should be "RESET".
> This one needs to be fixed.
Agreed, done.
>> src/include/nodes/parsenodes.h line:141
>> List *distinctClause; /* a list of SortGroupClause's */
>> The comment has the word "SortGroupClause", but that's should be
>> "distinctClause".
> This one is fine. The name distinctClause here is parser's way of
> referring to the SQL construct DISTINCT ON (<list-of-items>) in a
> SELECT query, where each member of the list is a SortGroupClause item.
Yes. It might be surprising if you don't know that ORDER BY, GROUP BY,
and DISTINCT all have a common parsetree representation ... but the
comment is correct as written.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, amitlangote09@gmail.com, wensheng.zhang@qunar.com
Subject: Re: gram.y comment issue
In-Reply-To: <9732.1457537466@sss.pgh.pa.us>
References: <56DFBCD0.7050909@qunar.com> <CA+HiwqE=_VkCvzUATY5GUTwiBFbXRpQzKLg4yjGm7Hn1=c4Wyg@mail.gmail.com> <9732.1457537466@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox