| От | Fabien COELHO |
|---|---|
| Тема | Re: pgbench - doCustom cleanup |
| Дата | |
| Msg-id | alpine.DEB.2.21.1811240904500.12627@lancre обсуждение исходный текст |
| Ответ на | Re: pgbench - doCustom cleanup (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Ответы |
RE: pgbench - doCustom cleanup
|
| Список | pgsql-hackers |
Hello Alvaro,
> I just pushed this. I hope not to have upset you too much with the
> subroutine thing.
Sorry for the feedback delay, my week was kind of overloaded…
Thanks for the push.
About the patch you committed, a post-commit review:
- the state and function renamings are indeed a good thing.
- I'm not fond of "now = func(..., now)", I'd have just passed a
reference.
- I'd put out the meta commands, but keep the SQL case and the state
assignment in the initial function, so that all state changes are in
one function… which was the initial aim of the submission.
Kind of a compromise:-)
See the attached followup patch which implements these suggestions. The
patch is quite small under "git diff -w", but larger because of the
reindentation as one "if" level is removed.
--
Fabien.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера