File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11CREATE EXTENSION sr_plan;
2+ set client_min_messages = LOG;
23CREATE TABLE test_table(test_attr1 int, test_attr2 int);
34SET sr_plan.write_mode = true;
45SELECT * FROM test_table WHERE test_attr1 = _p(10);
@@ -34,16 +35,19 @@ SELECT * FROM test_table WHERE test_attr1 = 15;
3435
3536UPDATE sr_plans SET enable = true;
3637SELECT * FROM test_table WHERE test_attr1 = _p(10);
38+ LOG: Ok we find saved plan.
3739 test_attr1 | test_attr2
3840------------+------------
3941(0 rows)
4042
4143SELECT * FROM test_table WHERE test_attr1 = _p(15);
44+ LOG: Ok we find saved plan.
4245 test_attr1 | test_attr2
4346------------+------------
4447(0 rows)
4548
4649SELECT * FROM test_table WHERE test_attr1 = 10;
50+ LOG: Ok we find saved plan.
4751 test_attr1 | test_attr2
4852------------+------------
4953(0 rows)
Original file line number Diff line number Diff line change 11CREATE EXTENSION sr_plan;
2+ set client_min_messages = LOG;
23
34CREATE TABLE test_table (test_attr1 int , test_attr2 int );
45SET sr_plan .write_mode = true;
@@ -24,4 +25,4 @@ CREATE TABLE test_table(test_attr1 int, test_attr2 int);
2425SELECT * FROM test_table WHERE test_attr1 = _p(10 );
2526SELECT * FROM test_table WHERE test_attr1 = 10 ;
2627SELECT * FROM test_table WHERE test_attr1 = 10 ;
27- SELECT * FROM test_table WHERE test_attr1 = 15 ;
28+ SELECT * FROM test_table WHERE test_attr1 = 15 ;
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ PlannedStmt *sr_planner(Query *parse,
226226
227227 if (find_ok )
228228 {
229- /* elog(WARNING , "Ok we find saved plan."); */
229+ elog (LOG , "Ok we find saved plan." );
230230 out_jsonb2 = (Jsonb * )DatumGetPointer (PG_DETOAST_DATUM (search_values [3 ]));
231231 if (query_params != NULL )
232232 pl_stmt = jsonb_to_node_tree (out_jsonb2 , & replace_fake );
You can’t perform that action at this time.
0 commit comments