Re: Consistently use macro HeapTupleIsValid to check the validity of tuples in tablecmds.c

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Consistently use macro HeapTupleIsValid to check the validity of tuples in tablecmds.c
Дата
Msg-id Z_cysAs4dJtNtXUc@paquier.xyz
обсуждение исходный текст
Ответ на Re: Consistently use macro HeapTupleIsValid to check the validity of tuples in tablecmds.c  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: Consistently use macro HeapTupleIsValid to check the validity of tuples in tablecmds.c
Список pgsql-hackers
On Wed, Apr 09, 2025 at 05:43:24PM +0300, Heikki Linnakangas wrote:
> Agreed. I use both, depending on which mood I'm in.

Same here, extended to OidIsValid(), HeapTupleIsValid(), XLogRecPtr,
etc., and I tend to prefer such macros, except if consistency of the
surroundings matter most.  FWIW, I think that living with the current
state of things to limit backpatch pain is fine.  There is no need to
change the existing code as an attempt to apply more standardization
even if one or more code grammar patterns mean the same thing.
--
Michael

Вложения

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