Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f20d5f

Browse files
committed
Reorder COMPRESSION option in gram.y and parsenodes.h into alphabetical order.
Commitbbe0a81 introduced "INCLUDING COMPRESSION" optionin CREATE TABLE command, but previously TableLikeOption in gram.y andparsenodes.h didn't classify this new option in alphabetical orderwith the rest.Author: Fujii MasaoReviewed-by: Michael PaquierDiscussion:https://postgr.es/m/YHerAixOhfR1ryXa@paquier.xyz
1 parent7531fcb commit3f20d5f

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
typedefenumTableLikeOption
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)

[8]ページ先頭

©2009-2025 Movatter.jp