Removing the TRACE_SORT macro

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Removing the TRACE_SORT macro
Дата
Msg-id CAM3SWZRaY9XaLPtx7aAPo3sEahk+6ExLX7+5Y=h-ECcy05phOw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Removing the TRACE_SORT macro  (Simon Riggs <simon@2ndQuadrant.com>)
Re: Removing the TRACE_SORT macro  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Currently, debug instrumentation for sorting is only available if the
TRACE_SORT macro was defined when PostgreSQL was compiled. It is
defined by default, and so in practice it's always available; there is
really no upside to disabling it. "18.17. Developer Options" notes
this restriction for trace_sort, which is the only such restriction.

The number of TRACE_SORT elog() logging callers has grown
significantly in the past couple of releases. The associated "#ifdef
TRACE_SORT" crud has also grown.

I propose that we completely remove the TRACE_SORT macro, and all the
associated crud. Just having that as an option suggests that there is
some possible upside to disabling trace_sort, which is clearly not
true. I will write a patch doing this if there are no objections. I
think this is justifiable as clean-up for 9.6.

-- 
Peter Geoghegan



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Remove unused function from walsender.c
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: Choosing parallel_degree