We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent327db8f commitbe4352dCopy full SHA for be4352d
sr_plan.c
@@ -83,7 +83,11 @@ 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
+#ifPG_VERSION_NUM >=90600
87
+query_index_rel_oid=DatumGetObjectId(DirectFunctionCall1(to_regclass,PointerGetDatum(cstring_to_text("sr_plans_query_hash_idx"))));
88
+#else
89
query_index_rel_oid=DatumGetObjectId(DirectFunctionCall1(to_regclass,CStringGetDatum("sr_plans_query_hash_idx")));
90
+#endif
91
if (query_index_rel_oid==InvalidOid)
92
{
93
elog(WARNING,"Not found sr_plans_query_hash_idx index");
@@ -485,4 +489,4 @@ sr_plan_invalid_table(PG_FUNCTION_ARGS)
485
489
heap_close(sr_plans_heap,RowExclusiveLock);
486
490
487
491
PG_RETURN_NULL();
488
-}
492
+}