pgsql: Reduce more the number of calls to GetMaxBackends()
В списке pgsql-committers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | pgsql: Reduce more the number of calls to GetMaxBackends() |
| Дата | |
| Msg-id | E1nHyFO-0000XP-UX@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Reduce more the number of calls to GetMaxBackends() Some of the code paths changed by aa64f23 can reduce the number of times GetMaxBackends() is called. The performance gain is marginal, but most of the code changed by this commit already did that. Hence, let's be clean and apply the same rule everywhere, for consistency. Some of the code paths, like in deadlock.c, involve only assertions. These are left unchanged. Reviewed-by: Nathan Bossart, Robert Haas Discussion: https://postgr.es/m/YgMpGZhPOjNfS7er@paquier.xyz Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/4567596316d186c6e61c72df013797266fcac2f7 Modified Files -------------- src/backend/commands/async.c | 5 +++-- src/backend/storage/lmgr/lock.c | 7 ++++--- src/backend/utils/adt/lockfuncs.c | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера