Re: Preventing indirection for IndexPageGetOpaque for known-size page special areas

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Preventing indirection for IndexPageGetOpaque for known-size page special areas
Дата
Msg-id 778525.1669682934@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Preventing indirection for IndexPageGetOpaque for known-size page special areas  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> I am wondering if it would be worth adding an AssertMacro() like in
> this one, though:
> https://www.postgresql.org/message-id/YkaP64JvZTMgcHtq@paquier.xyz

Kind of doubt it.  It'd bloat debug builds with a lot of redundant
checks, and probably never catch anything.  For catching problems
in production, the right place to do this (and where we already do
do it) is in _bt_checkpage.

If any of the other AMs lack page-read-time sanity checks like
_bt_checkpage, I'd be in favor of adding that.  But I don't
think a whole bunch of additional checks afterwards will buy much.

            regards, tom lane



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Preventing indirection for IndexPageGetOpaque for known-size page special areas
Следующее
От: Robert Haas
Дата:
Сообщение: Re: fixing CREATEROLE