Skip to content

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

Merged
silent-observer merged 2 commits into
sync-14x-b13from
sync-14x-b13-michkov-3
May 29, 2026
Merged

Resolve conflicts in src/include/parser/kwlist.h#2549
silent-observer merged 2 commits into
sync-14x-b13from
sync-14x-b13-michkov-3

Conversation

@silent-observer

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

Copy link
Copy Markdown

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
@ShapatinAA

This comment was marked as resolved.

@RekGRpth

This comment was marked as resolved.

Comment thread src/include/parser/kwlist.h Outdated
@RekGRpth RekGRpth self-requested a review May 28, 2026 04:42
@silent-observer silent-observer merged commit a982d2d into sync-14x-b13 May 29, 2026
1 check passed
@silent-observer silent-observer deleted the sync-14x-b13-michkov-3 branch May 29, 2026 11:44
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.

5 participants