OSDN Git Service

Clean up parsing of CREATE TRIGGER's argument list.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 May 2011 18:43:01 +0000 (14:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 May 2011 18:43:01 +0000 (14:43 -0400)
commit6fc6686b48bc569b05ce711d18cf964498b217f2
tree94ccefaa848c647287de1e38c7188a07da6d1593
parenta0c8514149de92d48a8cf0f1a1458486851980a4
Clean up parsing of CREATE TRIGGER's argument list.

Use ColLabel in place of ColId, so that reserved words are accepted as if
they were not reserved.  Also, remove BCONST and XCONST, which were never
documented as allowed.  Allowing those exposes to users an implementation
detail, namely the format in which the lexer outputs such constants, that
seems unwise to expose.

No documentation change needed, since this just makes the code act more
like you'd expect from reading the CREATE TRIGGER man page.

Per complaint from Szymon Guz and subsequent discussion.
src/backend/parser/gram.y