Re: Some RELKIND macro refactoring

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Some RELKIND macro refactoring
Дата
Msg-id YSXYuxLv+ed/Dy0v@paquier.xyz
обсуждение исходный текст
Ответ на Re: Some RELKIND macro refactoring  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: Some RELKIND macro refactoring  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
On Tue, Aug 24, 2021 at 12:01:33PM +0200, Peter Eisentraut wrote:
> While analyzing this again, I think I found an existing mistake.  The
> handling of RELKIND_PARTITIONED_INDEX in RelationGetNumberOfBlocksInFork()
> seems to be misplaced.  See attached patch.

Right.  This maps with RELKIND_HAS_STORAGE().  Makes me wonder whether
is would be better to add a check on RELKIND_HAS_STORAGE() in this
area, even if that's basically the same as the Assert() already used
in this code path.
--
Michael

Вложения

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

Предыдущее
От: "tanghy.fnst@fujitsu.com"
Дата:
Сообщение: RE: Skipping logical replication transactions on subscriber side
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Postgres perl module namespace