Re: [HACKERS] Overhead for stats_command_string et al, take 2
В списке pgsql-patches по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Overhead for stats_command_string et al, take 2 |
| Дата | |
| Msg-id | 23191.1151357513@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Overhead for stats_command_string et al, take 2 (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: [HACKERS] Overhead for stats_command_string et al, take
|
| Список | pgsql-patches |
Bruce Momjian <bruce@momjian.us> writes:
> Attached patch adds GUC 'update_process_title' to control ps display
> updates per SQL command. Default to 'on'. GUC name OK?
This is an ugly patch. Why not *one* test of the GUC variable, inside
set_ps_display(), and no side-effects on callers? You would need to
force an initial update from init_ps_display, but that only requires a
small amount of code refactoring inside ps_status.c.
The one place that might be worth having an external test on the GUC is
in lock.c, but then it should bypass the entire business of copying,
modifying, and restoring the title ... not just the two set_ps_display
calls.
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера