Skip to content

Commit 3f20d5f

Browse files
committed
Reorder COMPRESSION option in gram.y and parsenodes.h into alphabetical order.
Commit bbe0a81 introduced "INCLUDING COMPRESSION" option in CREATE TABLE command, but previously TableLikeOption in gram.y and parsenodes.h didn't classify this new option in alphabetical order with the rest. Author: Fujii Masao Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/YHerAixOhfR1ryXa@paquier.xyz
1 parent 7531fcb commit 3f20d5f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/backend/parser/gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3760,14 +3760,14 @@ TableLikeOptionList:
37603760

37613761
TableLikeOption:
37623762
COMMENTS { $$ = CREATE_TABLE_LIKE_COMMENTS; }
3763+
| COMPRESSION { $$ = CREATE_TABLE_LIKE_COMPRESSION; }
37633764
| CONSTRAINTS { $$ = CREATE_TABLE_LIKE_CONSTRAINTS; }
37643765
| DEFAULTS { $$ = CREATE_TABLE_LIKE_DEFAULTS; }
37653766
| IDENTITY_P { $$ = CREATE_TABLE_LIKE_IDENTITY; }
37663767
| GENERATED { $$ = CREATE_TABLE_LIKE_GENERATED; }
37673768
| INDEXES { $$ = CREATE_TABLE_LIKE_INDEXES; }
37683769
| STATISTICS { $$ = CREATE_TABLE_LIKE_STATISTICS; }
37693770
| STORAGE { $$ = CREATE_TABLE_LIKE_STORAGE; }
3770-
| COMPRESSION { $$ = CREATE_TABLE_LIKE_COMPRESSION; }
37713771
| ALL { $$ = CREATE_TABLE_LIKE_ALL; }
37723772
;
37733773

src/include/nodes/parsenodes.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -690,14 +690,14 @@ typedef struct TableLikeClause
690690
typedef enum TableLikeOption
691691
{
692692
CREATE_TABLE_LIKE_COMMENTS = 1 << 0,
693-
CREATE_TABLE_LIKE_CONSTRAINTS = 1 << 1,
694-
CREATE_TABLE_LIKE_DEFAULTS = 1 << 2,
695-
CREATE_TABLE_LIKE_GENERATED = 1 << 3,
696-
CREATE_TABLE_LIKE_IDENTITY = 1 << 4,
697-
CREATE_TABLE_LIKE_INDEXES = 1 << 5,
698-
CREATE_TABLE_LIKE_STATISTICS = 1 << 6,
699-
CREATE_TABLE_LIKE_STORAGE = 1 << 7,
700-
CREATE_TABLE_LIKE_COMPRESSION = 1 << 8,
693+
CREATE_TABLE_LIKE_COMPRESSION = 1 << 1,
694+
CREATE_TABLE_LIKE_CONSTRAINTS = 1 << 2,
695+
CREATE_TABLE_LIKE_DEFAULTS = 1 << 3,
696+
CREATE_TABLE_LIKE_GENERATED = 1 << 4,
697+
CREATE_TABLE_LIKE_IDENTITY = 1 << 5,
698+
CREATE_TABLE_LIKE_INDEXES = 1 << 6,
699+
CREATE_TABLE_LIKE_STATISTICS = 1 << 7,
700+
CREATE_TABLE_LIKE_STORAGE = 1 << 8,
701701
CREATE_TABLE_LIKE_ALL = PG_INT32_MAX
702702
} TableLikeOption;
703703

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy