Re: doc patch: clarify the naming rule for injection_points
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: doc patch: clarify the naming rule for injection_points |
| Дата | |
| Msg-id | aAXz9MMKZvCPN-SC@paquier.xyz обсуждение |
| Ответ на | RE: doc patch: clarify the naming rule for injection_points ("Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>) |
| Ответы |
RE: doc patch: clarify the naming rule for injection_points
|
| Список | pgsql-hackers |
On Mon, Apr 14, 2025 at 12:36:20PM +0000, Hayato Kuroda (Fujitsu) wrote:
> I also feel just converting lower case is not good. The point seems to locate in
> the end-of-transaction callback and it accepts invalidation messages. Based on the
> fact, how about "inval-process-invalidation-messages"?
> 0002 did simple replacements of these words.
- INJECTION_POINT("heap_update-before-pin");
+ INJECTION_POINT("heap-update-before-pin");
The former name is better IMO. heap_update() is the name of the
function where the point is defined.
- INJECTION_POINT("AtEOXact_Inval-with-transInvalInfo");
+ INJECTION_POINT("inval-process-invalidation-messages");
This naming has been puzzling me, though, so a rename looks fit. I am
not sure that this is the best name that matches with this code path,
as this lacks a reference regarding the end of a transaction. Perhaps
something like "end-transaction-process-inval" would be better?
--
Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера