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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy