Skip to content

Resolve conflicts in src/include/parser/kwlist.h#2549

Open
silent-observer wants to merge 1 commit into
sync-14x-b13from
sync-14x-b13-michkov-3
Open

Resolve conflicts in src/include/parser/kwlist.h#2549
silent-observer wants to merge 1 commit into
sync-14x-b13from
sync-14x-b13-michkov-3

Conversation

@silent-observer
Copy link
Copy Markdown

@silent-observer silent-observer commented May 21, 2026

Commit 06a7c31 has added a new is-bare-label
argument to PG_KEYWORD. Most keywords have BARE_LABEL, allowing them to be used
as labels without AS keyword, but 39 are marked AS_LABEL, requiring as. However,
there are a lot of GPDB-specific keywords too, most of them without comments.
Conservatively mark them AS_LABEL to avoid accidentally breaking the grammar,
Also mark all GPDB-specific keywords with comments to simplify future conflict
resolutions. However, some of the keywords, specifically "format" and "ignore",
are present in later versions of Postgres and "format" is marked as BARE_LABEL,
so mark it BARE_LABEL here too.

Commit 06a7c31 has added a new is-bare-label
argument to PG_KEYWORD. Most keywords have BARE_LABEL, allowing them to be used
as labels without AS keyword, but 39 are marked AS_LABEL, requiring as. However,
there are a lot of GPDB-specific keywords too, most of them without comments.
Conservatively mark them AS_LABEL to avoid accidentally breaking the grammar,
Also mark all GPDB-specific keywords with comments to simplify future conflict
resolutions. However, some of the keywords, specifically "format" and "ignore",
are present in later versions of Postgres and are marked as BARE_LABEL, so
mark them BARE_LABEL here too.
Comment thread src/include/parser/kwlist.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants