Skip to content

Commit 79f2a4b

Browse files
committed
Fix compability with 9.6
1 parent 89ce2c9 commit 79f2a4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sr_plan.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,11 @@ show_plan(PG_FUNCTION_ARGS)
979979
errmsg("could not find saved plan")));
980980

981981
ExplainBeginOutput(es);
982+
#if PG_VERSION_NUM >= 100000
982983
ExplainOnePlan(pl_stmt, NULL, es, queryString, NULL, NULL, NULL);
984+
#else
985+
ExplainOnePlan(pl_stmt, NULL, es, queryString, NULL, NULL);
986+
#endif
983987
ExplainEndOutput(es);
984988
Assert(es->indent == 0);
985989

0 commit comments

Comments
 (0)