diff --git a/parser/sql/dialect/opengauss/src/main/antlr4/imports/opengauss/BaseRule.g4 b/parser/sql/dialect/opengauss/src/main/antlr4/imports/opengauss/BaseRule.g4
index abf4c2e63d310..610ebdda0be74 100644
--- a/parser/sql/dialect/opengauss/src/main/antlr4/imports/opengauss/BaseRule.g4
+++ b/parser/sql/dialect/opengauss/src/main/antlr4/imports/opengauss/BaseRule.g4
@@ -329,6 +329,7 @@ unreservedWord
| PROCEDURES
| PROGRAM
| PUBLICATION
+ | QUARTER
| QUOTE
| RANGE
| READ
@@ -427,6 +428,7 @@ unreservedWord
| VIEW
| VIEWS
| VOLATILE
+ | WEEK
| WHITESPACE
| WITHIN
| WITHOUT
@@ -1147,7 +1149,9 @@ extractList
extractArg
: YEAR
+ | QUARTER
| MONTH
+ | WEEK
| DAY
| HOUR
| MINUTE
diff --git a/parser/sql/dialect/postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4 b/parser/sql/dialect/postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
index 751ca07f4e0f2..4a1910c3b99f4 100644
--- a/parser/sql/dialect/postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
+++ b/parser/sql/dialect/postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
@@ -330,6 +330,7 @@ unreservedWord
| PROCEDURES
| PROGRAM
| PUBLICATION
+ | QUARTER
| QUOTE
| RANGE
| READ
@@ -428,6 +429,7 @@ unreservedWord
| VIEW
| VIEWS
| VOLATILE
+ | WEEK
| WHITESPACE
| WITHIN
| WITHOUT
@@ -1114,7 +1116,9 @@ extractList
extractArg
: YEAR
+ | QUARTER
| MONTH
+ | WEEK
| DAY
| HOUR
| MINUTE
diff --git a/test/it/parser/src/main/resources/case/dml/select-special-function.xml b/test/it/parser/src/main/resources/case/dml/select-special-function.xml
index 696568f2e0828..6712182134b86 100644
--- a/test/it/parser/src/main/resources/case/dml/select-special-function.xml
+++ b/test/it/parser/src/main/resources/case/dml/select-special-function.xml
@@ -440,6 +440,50 @@
+
+
+
+