Re: Our ABI diff infrastructure ignores enum SysCacheIdentifier

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Our ABI diff infrastructure ignores enum SysCacheIdentifier
Дата
Msg-id aZUlK0NHoPucwlUc@paquier.xyz
обсуждение исходный текст
Ответ на Re: Our ABI diff infrastructure ignores enum SysCacheIdentifier  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Tue, Feb 17, 2026 at 05:59:31PM +0900, Michael Paquier wrote:
> On Tue, Feb 17, 2026 at 09:20:44AM +0100, Andreas Karlsson wrote:
>> Yeah, that looks like a quite nice improvement. My only comment is that if
>> it was me I would have split it into two patches, one introducing the
>> invalid and one replacing int. But you are much more familiar than me with
>> what granularity of commits the project prefers
>
> Splitting that into two is probably better, yes.  Even if both changes
> touch the same portions of perl script, it makes the introduction of
> the two concepts cleaner.

The conclusion of this exercise is that I have spotted two more spots
that checked for an invalid syscache ID based on a hardcoded value of
-1, and I have replaced them with the new value assigned in the enum.
A few more of these checked for a positive value.  There was also one
spot that I've found was incorrect, fixed separately as of
f7df12a66cc9.

The buildfarm is not complaining after c06b5b99bbb0 and ee642cccc43c,
meaning that we are hopefully good for v19 and future versions.
--
Michael

Вложения

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