pgsql: Set pd_lower on internal GIN posting tree pages.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Set pd_lower on internal GIN posting tree pages.
Дата
Msg-id E1WZlOd-0005QT-9I@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Set pd_lower on internal GIN posting tree pages.

This allows squeezing out the unused space in full-page writes. And more
importantly, it can be a useful debugging aid.

In hindsight we should've done this back when GIN was added - we wouldn't
need the 'maxoff' field in the page opaque struct if we had used pd_lower
and pd_upper like on normal pages. But as long as there can be pages in the
index that have been binary-upgraded from pre-9.4 versions, we can't rely
on that, and have to continue using 'maxoff'.

Most of the code churn comes from renaming some macros, now that they're
used on internal pages, too.

This change is completely backwards-compatible, no effect on pg_upgrade.

Branch
------
master

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

Modified Files
--------------
src/backend/access/gin/gindatapage.c |   69 ++++++++++++++++++++++------------
src/backend/access/gin/ginvacuum.c   |    9 ++++-
src/backend/access/gin/ginxlog.c     |   14 +++----
src/include/access/gin_private.h     |   27 ++++++++-----
4 files changed, 78 insertions(+), 41 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: doc: Suggesting clearing pg_replslot from a hot filesystem backu
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix whitespace