From bd8b8b031a8049a6e7c18c00946bfbd99d75d27f Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Thu, 28 Apr 2016 17:44:59 +0300 Subject: [PATCH] 9.6 snapshot too old support --- gevel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gevel.c b/gevel.c index 7887114..bfadb97 100644 --- a/gevel.c +++ b/gevel.c @@ -736,7 +736,11 @@ processTuple( FuncCallContext *funcctx, GinStatState *st, IndexTuple itup ) { LockBuffer(st->buffer, GIN_UNLOCK); #if PG_VERSION_NUM >= 90400 - stack = ginScanBeginPostingTree(&btree, st->index, rootblkno); + stack = ginScanBeginPostingTree(&btree, st->index, rootblkno +#if PG_VERSION_NUM >= 90600 + , NULL +#endif + ); page = BufferGetPage(stack->buffer); ItemPointerSetMin(&minItem); list = GinDataLeafPageGetItems(page, &nlist, minItem); -- 2.37.3