Re: "as quickly as possible" (was: remove spurious CREATE INDEX CONCURRENTLY wait)
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: "as quickly as possible" (was: remove spurious CREATE INDEX CONCURRENTLY wait) |
| Дата | |
| Msg-id | 129515.1606166429@sss.pgh.pa.us обсуждение |
| Ответ на | Re: "as quickly as possible" (was: remove spurious CREATE INDEX CONCURRENTLY wait) (Alvaro Herrera <alvherre@alvh.no-ip.org>) |
| Ответы |
Re: "as quickly as possible" (was: remove spurious CREATE INDEX CONCURRENTLY wait)
|
| Список | pgsql-hackers |
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2020-Nov-19, Michael Paquier wrote:
>> By the way, it strikes me that you could just do nothing as long as
>> (log_min_messages > DEBUG1), so you could encapsulate most of the
>> logic that plays with the lock tag using that.
> Good idea, done.
I'm less sure that that's a good idea. It embeds knowledge here that
should not exist outside elog.c; moreover, I'm not entirely sure that
it's even correct, given the nonlinear ranking of log_min_messages.
Maybe it'd be a good idea to have elog.c expose a new function
along the lines of "bool message_level_is_interesting(int elevel)"
to support this and similar future optimizations in a less fragile way.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера