We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 327db8f commit 720106eCopy full SHA for 720106e
sr_plan.c
@@ -83,7 +83,7 @@ PlannedStmt *sr_planner(Query *parse,
83
sr_plans_table_rv = makeRangeVar("public", "sr_plans", -1);
84
sr_plans_heap = heap_openrv(sr_plans_table_rv, heap_lock);
85
86
- query_index_rel_oid = DatumGetObjectId(DirectFunctionCall1(to_regclass, CStringGetDatum("sr_plans_query_hash_idx")));
+ query_index_rel_oid = DatumGetObjectId(DirectFunctionCall1(to_regclass, PointerGetDatum(cstring_to_text("sr_plans_query_hash_idx"))));
87
if (query_index_rel_oid == InvalidOid)
88
{
89
elog(WARNING, "Not found sr_plans_query_hash_idx index");
@@ -485,4 +485,4 @@ sr_plan_invalid_table(PG_FUNCTION_ARGS)
485
heap_close(sr_plans_heap, RowExclusiveLock);
486
487
PG_RETURN_NULL();
488
-}
+}
0 commit comments