[COMMITTERS] pgsql: pageinspect: Fix hash_bitmap_info not to read the underlyingpag

Поиск
Список
Период
Сортировка
От Robert Haas
Тема [COMMITTERS] pgsql: pageinspect: Fix hash_bitmap_info not to read the underlyingpag
Дата
Msg-id E1cbuWA-00039m-Rx@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pageinspect: Fix hash_bitmap_info not to read the underlying page.

It did that to verify that the page was an overflow page rather than
anything else, but that means that checking the status of all the
overflow bits requires reading the entire index.  So don't do that.
The new code validates that the page is not a primary bucket page
or bitmap page by looking at the metapage, so that using this on
large numbers of pages can be reasonably efficient.

Ashutosh Sharma, per a complaint from me, and with further
modifications by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fc8219dc54c95ea673560b786aa8123ce6ec5977

Modified Files
--------------
contrib/pageinspect/expected/hash.out | 18 ++++------
contrib/pageinspect/hashfuncs.c       | 62 ++++++++++++++++++++---------------
src/backend/access/hash/hashovfl.c    | 13 ++++++--
3 files changed, 53 insertions(+), 40 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: [COMMITTERS] pgsql: Allow index AMs to cache data across aminsert calls within aSQL
Следующее
От: Robert Haas
Дата:
Сообщение: [COMMITTERS] pgsql: Fix race condition in ConditionVariablePrepareToSleep.