Skip to content

Commit 720106e

Browse files
committed
Port to postgres 9.6
1 parent 327db8f commit 720106e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sr_plan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ PlannedStmt *sr_planner(Query *parse,
8383
sr_plans_table_rv = makeRangeVar("public", "sr_plans", -1);
8484
sr_plans_heap = heap_openrv(sr_plans_table_rv, heap_lock);
8585

86-
query_index_rel_oid = DatumGetObjectId(DirectFunctionCall1(to_regclass, CStringGetDatum("sr_plans_query_hash_idx")));
86+
query_index_rel_oid = DatumGetObjectId(DirectFunctionCall1(to_regclass, PointerGetDatum(cstring_to_text("sr_plans_query_hash_idx"))));
8787
if (query_index_rel_oid == InvalidOid)
8888
{
8989
elog(WARNING, "Not found sr_plans_query_hash_idx index");
@@ -485,4 +485,4 @@ sr_plan_invalid_table(PG_FUNCTION_ARGS)
485485
heap_close(sr_plans_heap, RowExclusiveLock);
486486

487487
PG_RETURN_NULL();
488-
}
488+
}

0 commit comments

Comments
 (0)