From 223936e22691ccae02be7e2980b6f565518bff19 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Wed, 9 Sep 2015 19:21:16 +0300 Subject: [PATCH] Fix oversight in 013ebc0a7b7ea9c1b1ab7a3d4dd75ea121ea8ba7 commit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Declaration of varibale inside ÓÝ×Õ --- src/backend/access/gist/gistget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/access/gist/gistget.c b/src/backend/access/gist/gistget.c index 473ae430dd..ce8e582059 100644 --- a/src/backend/access/gist/gistget.c +++ b/src/backend/access/gist/gistget.c @@ -718,10 +718,12 @@ gistgettuple(PG_FUNCTION_ARGS) /* find and process the next index page */ do { + GISTSearchItem *item; + if ((so->curBlkno != InvalidBlockNumber) && (so->numKilled > 0)) gistkillitems(scan); - GISTSearchItem *item = getNextGISTSearchItem(so); + item = getNextGISTSearchItem(so); if (!item) PG_RETURN_BOOL(false); -- 2.40.0