Re: pgsql: Add functions to 'pageinspect' to inspect GiST indexes.

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: pgsql: Add functions to 'pageinspect' to inspect GiST indexes.
Дата
Msg-id CAH2-WzngR7aDr+i8pdRWL-O+_VD+xJGxJvGhfhczvMJSpeM7ig@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Add functions to 'pageinspect' to inspect GiST indexes.  (Heikki Linnakangas <heikki.linnakangas@iki.fi>)
Ответы Re: pgsql: Add functions to 'pageinspect' to inspect GiST indexes.  (Andrey Borodin <x4mmm@yandex-team.ru>)
Список pgsql-committers
On Wed, Jan 13, 2021 at 12:36 AM Heikki Linnakangas
<heikki.linnakangas@iki.fi> wrote:
> Add functions to 'pageinspect' to inspect GiST indexes.

Is gist_page_items() robust with deleted pages? I think that it's
unsafe to assume that deleted pages will have index tuples, since the
page contents will actually be a GISTDeletedPageContents.

Simplest fix would be to assume maxoff is 0 for the page, perhaps.
Right now we just use PageGetMaxOffsetNumber(), which implicitly
assumes that the page uses slotted tuples with an array of line
pointers (actually it can also deal with a zeroed page, but that's not
relevant here).

-- 
Peter Geoghegan



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove dead code in ECPGconnect(), and improve documentation.
Следующее
От: Peter Geoghegan
Дата:
Сообщение: pgsql: Remove obsolete IndexBulkDeleteResult stats field.