diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-05-19 20:09:59 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-05-19 20:09:59 -0400 |
commit | c7d65a252cdb7219deb48899fa643c5fd2cc3877 (patch) | |
tree | 5efab54417ed9d38d31b0fd2d5a8f76ac9481be9 /src | |
parent | 67b0b2dbf947c2308050e49b4591a4bb0e9650fd (diff) | |
download | postgresql-c7d65a252cdb7219deb48899fa643c5fd2cc3877.tar.gz postgresql-c7d65a252cdb7219deb48899fa643c5fd2cc3877.zip |
part_strategy does not need its very own keyword classification.
This should be plain old ColId. Making it so makes the grammar less
complicated, and makes the compiled tables a kilobyte or so smaller
(likely because they don't have to deal with a keyword classification
that's not used anyplace else).
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/parser/gram.y | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index a24b30f06f1..e66b850e1a9 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -595,7 +595,6 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query); %type <boolean> opt_if_not_exists %type <ival> generated_when override_kind %type <partspec> PartitionSpec OptPartitionSpec -%type <str> part_strategy %type <partelem> part_elem %type <list> part_params %type <partboundspec> PartitionBoundSpec @@ -3894,7 +3893,7 @@ OptPartitionSpec: PartitionSpec { $$ = $1; } | /*EMPTY*/ { $$ = NULL; } ; -PartitionSpec: PARTITION BY part_strategy '(' part_params ')' +PartitionSpec: PARTITION BY ColId '(' part_params ')' { PartitionSpec *n = makeNode(PartitionSpec); @@ -3906,10 +3905,6 @@ PartitionSpec: PARTITION BY part_strategy '(' part_params ')' } ; -part_strategy: IDENT { $$ = $1; } - | unreserved_keyword { $$ = pstrdup($1); } - ; - part_params: part_elem { $$ = list_make1($1); } | part_params ',' part_elem { $$ = lappend($1, $3); } ; |