File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -1650,6 +1650,13 @@ VariableSetStmt:
1650
1650
n->is_local = false ;
1651
1651
$$ = (Node *) n;
1652
1652
}
1653
+ | PGPOOL set_rest_more
1654
+ {
1655
+ VariableSetStmt *n = $2 ;
1656
+ n->type = T_PgpoolQueryCacheStmt; /* Hack to keep changes minimum */
1657
+ n->is_local = false ;
1658
+ $$ = (Node *) n;
1659
+ }
1653
1660
| SET set_rest
1654
1661
{
1655
1662
VariableSetStmt *n = $2 ;
@@ -1848,6 +1855,13 @@ set_rest_more: /* Generic SET syntaxes: */
1848
1855
n->location = @3 ;
1849
1856
$$ = n;
1850
1857
}
1858
+ /* PGPOOL CACHE DELETE */
1859
+ | SET CACHE DELETE_P Sconst
1860
+ {
1861
+ VariableSetStmt *n = makeNode(VariableSetStmt);
1862
+ n->name = $4 ; /* query to delete query cache */
1863
+ $$ = n;
1864
+ }
1851
1865
;
1852
1866
1853
1867
var_name : ColId { $$ = $1 ; }
Original file line number Diff line number Diff line change @@ -1652,6 +1652,13 @@ VariableSetStmt:
1652
1652
n->is_local = false ;
1653
1653
$$ = (Node *) n;
1654
1654
}
1655
+ | PGPOOL set_rest_more
1656
+ {
1657
+ VariableSetStmt *n = $2 ;
1658
+ n->type = T_PgpoolQueryCacheStmt; /* Hack to keep changes minimum */
1659
+ n->is_local = false ;
1660
+ $$ = (Node *) n;
1661
+ }
1655
1662
| SET set_rest
1656
1663
{
1657
1664
VariableSetStmt *n = $2 ;
@@ -1850,6 +1857,13 @@ set_rest_more: /* Generic SET syntaxes: */
1850
1857
n->location = @3 ;
1851
1858
$$ = n;
1852
1859
}
1860
+ /* PGPOOL CACHE DELETE */
1861
+ | SET CACHE DELETE_P Sconst
1862
+ {
1863
+ VariableSetStmt *n = makeNode(VariableSetStmt);
1864
+ n->name = $4 ; /* query to delete query cache */
1865
+ $$ = n;
1866
+ }
1853
1867
;
1854
1868
1855
1869
var_name : ColId { $$ = $1 ; }
Original file line number Diff line number Diff line change @@ -1673,6 +1673,13 @@ VariableSetStmt:
1673
1673
n->is_local = false ;
1674
1674
$$ = (Node *) n;
1675
1675
}
1676
+ | PGPOOL set_rest_more
1677
+ {
1678
+ VariableSetStmt *n = $2 ;
1679
+ n->type = T_PgpoolQueryCacheStmt; /* Hack to keep changes minimum */
1680
+ n->is_local = false ;
1681
+ $$ = (Node *) n;
1682
+ }
1676
1683
| SET set_rest
1677
1684
{
1678
1685
VariableSetStmt *n = $2 ;
@@ -1871,6 +1878,13 @@ set_rest_more: /* Generic SET syntaxes: */
1871
1878
n->location = @3 ;
1872
1879
$$ = n;
1873
1880
}
1881
+ /* PGPOOL CACHE DELETE */
1882
+ | SET CACHE DELETE_P Sconst
1883
+ {
1884
+ VariableSetStmt *n = makeNode(VariableSetStmt);
1885
+ n->name = $4 ; /* query to delete query cache */
1886
+ $$ = n;
1887
+ }
1874
1888
;
1875
1889
1876
1890
var_name : ColId { $$ = $1 ; }
You can’t perform that action at this time.
0 commit comments