Fix regression introduced by the previous commit (df277163720a248f108192329de58077cd3... master
authorBo Peng <pengbo@sraoss.co.jp>
Sun, 5 Oct 2025 10:35:14 +0000 (19:35 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Sun, 5 Oct 2025 10:35:14 +0000 (19:35 +0900)
src/parser/gram.y
src/parser/gram_minimal.y
src/parser/gram_template.y

index b6a4f618f4b3a57ee9c2d45792c8555486f2900a..8052ced8dc3f6ea5319081dc5fd15f8b970e767a 100644 (file)
@@ -1650,6 +1650,13 @@ VariableSetStmt:
                                        n->is_local = false;
                                        $$ = (Node *) n;
                                }
+                       | PGPOOL set_rest_more
+                               {
+                                       VariableSetStmt *n = $2;
+                                       n->type = T_PgpoolQueryCacheStmt; /* Hack to keep changes minimum */
+                                       n->is_local = false;
+                                       $$ = (Node *) n;
+                               }
                        | SET set_rest
                                {
                                        VariableSetStmt *n = $2;
@@ -1848,6 +1855,13 @@ set_rest_more:   /* Generic SET syntaxes: */
                                        n->location = @3;
                                        $$ = n;
                                }
+                       /* PGPOOL CACHE DELETE */
+                       | SET CACHE DELETE_P Sconst
+                               {
+                                       VariableSetStmt *n = makeNode(VariableSetStmt);
+                                       n->name = $4;   /* query to delete query cache */
+                                       $$ = n;
+                               }
                ;
 
 var_name:      ColId                                                           { $$ = $1; }
index 5c71b4cae747015d7ddb8d5aae139b04755bdd27..dc540e1c9c2d31a86060df444e1d1fe945a56bb8 100644 (file)
@@ -1652,6 +1652,13 @@ VariableSetStmt:
                                        n->is_local = false;
                                        $$ = (Node *) n;
                                }
+                       | PGPOOL set_rest_more
+                               {
+                                       VariableSetStmt *n = $2;
+                                       n->type = T_PgpoolQueryCacheStmt; /* Hack to keep changes minimum */
+                                       n->is_local = false;
+                                       $$ = (Node *) n;
+                               }
                        | SET set_rest
                                {
                                        VariableSetStmt *n = $2;
@@ -1850,6 +1857,13 @@ set_rest_more:   /* Generic SET syntaxes: */
                                        n->location = @3;
                                        $$ = n;
                                }
+                       /* PGPOOL CACHE DELETE */
+                       | SET CACHE DELETE_P Sconst
+                               {
+                                       VariableSetStmt *n = makeNode(VariableSetStmt);
+                                       n->name = $4;   /* query to delete query cache */
+                                       $$ = n;
+                               }
                ;
 
 var_name:      ColId                                                           { $$ = $1; }
index 94017e3cb3dcad00c21384c6729277667eb75f55..4ade683657401bc276d496ab36942708a4586951 100644 (file)
@@ -1673,6 +1673,13 @@ VariableSetStmt:
                                        n->is_local = false;
                                        $$ = (Node *) n;
                                }
+                       | PGPOOL set_rest_more
+                               {
+                                       VariableSetStmt *n = $2;
+                                       n->type = T_PgpoolQueryCacheStmt; /* Hack to keep changes minimum */
+                                       n->is_local = false;
+                                       $$ = (Node *) n;
+                               }
                        | SET set_rest
                                {
                                        VariableSetStmt *n = $2;
@@ -1871,6 +1878,13 @@ set_rest_more:   /* Generic SET syntaxes: */
                                        n->location = @3;
                                        $$ = n;
                                }
+                       /* PGPOOL CACHE DELETE */
+                       | SET CACHE DELETE_P Sconst
+                               {
+                                       VariableSetStmt *n = makeNode(VariableSetStmt);
+                                       n->name = $4;   /* query to delete query cache */
+                                       $$ = n;
+                               }
                ;
 
 var_name:      ColId                                                           { $$ = $1; }