Skip to content

Commit c33bfcd

Browse files
committed
Expand enum value research
1 parent 9af641b commit c33bfcd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

AST_RESEARCH.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,24 @@ A brief inspection of the diffs highlights:
4444
| 16 | JsonConstructorType, JsonEncoding, JsonFormatType, JsonValueType, PartitionStrategy |
4545
| 17 | JsonBehaviorType, JsonExprOp, JsonQuotes, JsonTableColumnType, JsonWrapper, MergeMatchKind, TableFuncType |
4646

47+
### Enum value shifts
48+
49+
The numeric assignments within several enums changed between releases. The table
50+
below lists notable examples.
51+
52+
| Enum | Changed in | Notes |
53+
|------|------------|-------|
54+
| `A_Expr_Kind` | PG14 | Removed `AEXPR_OF` and `AEXPR_PAREN`, causing indices to shift |
55+
| `RoleSpecType` | PG14 | Added `ROLESPEC_CURRENT_ROLE` at position 1 |
56+
| `TableLikeOption` | PG14 | Added `CREATE_TABLE_LIKE_COMPRESSION` at position 1 |
57+
| `WCOKind` | PG15 | Added `WCO_RLS_MERGE_UPDATE_CHECK` and `WCO_RLS_MERGE_DELETE_CHECK` |
58+
| `ObjectType` | PG15 | Inserted `OBJECT_PUBLICATION_NAMESPACE` and `OBJECT_PUBLICATION_REL` before existing entries |
59+
| `JoinType` | PG16 | Added `JOIN_RIGHT_ANTI`, shifting subsequent values |
60+
| `AlterTableType` | PG16–17 | Many values renumbered; PG17 introduces `AT_SetExpression` |
61+
| `Token` | multiple | Token list grows each release, with new codes inserted |
62+
63+
Counting all enums, roughly **11** changed between PG13 and PG14, **8** changed from PG14 to PG15, **8** changed from PG15 to PG16, and **10** changed from PG16 to PG17.
64+
4765

4866
### Scalar node changes
4967

0 commit comments

Comments
 (0)