Re: Fixes inconsistent behavior in vacuum when it processes multiple relations
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: Fixes inconsistent behavior in vacuum when it processes multiple relations |
| Дата | |
| Msg-id | acW7Qg1fjPeaKqeF@paquier.xyz обсуждение исходный текст |
| Ответ на | Re: Fixes inconsistent behavior in vacuum when it processes multiple relations (Nathan Bossart <nathandbossart@gmail.com>) |
| Ответы |
Re: Fixes inconsistent behavior in vacuum when it processes multiple relations
|
| Список | pgsql-hackers |
On Thu, Mar 26, 2026 at 11:07:52AM -0500, Nathan Bossart wrote: > Wait... Can't we just pass params by value only to vacuum_rel()? Doesn't > this accomplish what we need? It would accomplish Andres's goal of avoiding a deeper inclusion of vacuum.h in src/include/. Still, I slightly prefer your v2, where the interface of vacuum_rel() is leaner with all the other ones. It comes at the cost of copying the input parameters into a temporary "copy" of VacuumParams, but I see the fact of marking the input "params" with a const as more valuable in the long-run, with less temptation to manipulate it directly especially it is not not marked with a const. One small worry with v3 is that people like copy-pasting code around, and I suspect that v2 could discourage better the patterns that 2252fcd4276c has tried to improve and that 661643dedad9 had to fix. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера