Re: A recent message added to pg_upgade

Поиск
Список
Период
Сортировка
От Kyotaro Horiguchi
Тема Re: A recent message added to pg_upgade
Дата
Msg-id 20231030.164045.650827844386195435.horikyota.ntt@gmail.com
обсуждение исходный текст
Ответ на Re: A recent message added to pg_upgade  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-hackers
At Mon, 30 Oct 2023 08:51:18 +0530, Amit Kapila <amit.kapila16@gmail.com> wrote in 
> I think we can simply change that error message to assert if we want
> to go with the check hook idea of yours. BTW, can we add
> GUC_check_errdetail() with a better message as some of the other check
> function uses? Also, I guess we can add some comments or at least
> refer to the existing comments to explain the reason of such a check.

Definitely.  I've attached the following changes.

1. Added GUC_check_errdetail() to the check function.

2. Added a comment to the check function (based on my knowledge about
  the feature).

3. Altered the ereport() into Assert() in
   InvalidatePossiblyObsoleteSlot().  I considered removing the
   !SlotIsLogical() condition since pg_upgrade always sets
   max_slot_wal_keep_size to -1, but I left it unchanged.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

Вложения

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

Предыдущее
От: torikoshia
Дата:
Сообщение: Add new option 'all' to pg_stat_reset_shared()
Следующее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: A recent message added to pg_upgade