pgsql: Fix two small bugs in new gistget.c logic.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix two small bugs in new gistget.c logic.
Дата
Msg-id E1POx9Q-0006qh-3e@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix two small bugs in new gistget.c logic.

1. Complain, rather than silently doing nothing, if an "invalid" tuple
is found on a leaf page.  Per off-list discussion with Heikki.

2. Fix oversight in code that removes a GISTSearchItem from the search
queue: we have to reset lastHeap if this was the last heap item in the
parent GISTSearchTreeItem.  Otherwise subsequent additions will do the
wrong thing.  This was probably masked in early testing because in typical
cases the parent item would now be completely empty and would be deleted on
next call.  You'd need a queued non-leaf page at exactly the same distance
as a heap tuple to expose the bug.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=d1f5a92e18dcfc750e9d338597e66af920aad99e

Modified Files
--------------
src/backend/access/gist/gistget.c |    5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Make output width consistent for all ways of invoking a regressi
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Reduce memory consumption inside inheritance_planner().