RE: Introduce XID age and inactive timeout based replication slot invalidation
От | Hayato Kuroda (Fujitsu) |
---|---|
Тема | RE: Introduce XID age and inactive timeout based replication slot invalidation |
Дата | |
Msg-id | TYAPR01MB5692B7687EE7981AA91BA5B9F5362@TYAPR01MB5692.jpnprd01.prod.outlook.com обсуждение исходный текст |
Ответ на | Re: Introduce XID age and inactive timeout based replication slot invalidation (vignesh C <vignesh21@gmail.com>) |
Список | pgsql-hackers |
Dear Nisha, Thanks for updating the patch! > Fixed. It is reasonable to align with other timeout parameters by > using milliseconds as the unit. It looks you just replaced to GUC_UNIT_MS, but the documentation and postgresql.conf.sample has not been changed yet. They should follow codes. Anyway, here are other comments, mostly cosmetic. 01. slot.c ``` +int replication_slot_inactive_timeout_ms = 0; ``` According to other lines, we should add a short comment for the GUC. 02. 050_invalidate_slots.pl Do you have a reason why you use the number 050? I feel it can be 043. 03. 050_invalidate_slots.pl Also, not sure the file name is correct. This file contains only a slot invalidation due to the replication_slot_inactive_timeout. But I feel current name is too general. 04. 050_invalidate_slots.pl ``` +use Time::HiRes qw(usleep); ``` This line is not needed because usleep() is not used in this file. Best regards, Hayato Kuroda FUJITSU LIMITED
В списке pgsql-hackers по дате отправления: