Re: pgsql: Add assert checking to pg_leftmost_one_pos32() and friends
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pgsql: Add assert checking to pg_leftmost_one_pos32() and friends |
| Дата | |
| Msg-id | 3567481.1676906261@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | pgsql: Add assert checking to pg_leftmost_one_pos32() and friends (John Naylor <john.naylor@postgresql.org>) |
| Ответы |
Re: pgsql: Add assert checking to pg_leftmost_one_pos32() and friends
|
| Список | pgsql-committers |
John Naylor <john.naylor@postgresql.org> writes:
> Add assert checking to pg_leftmost_one_pos32() and friends
I can see that this was worth writing for testing purposes, but
is it really worth carrying permanently? Even in a debug build,
the ratio of cycles expended to chances of finding a problem seems
mighty poor, and you've done a lot of damage to the readability
of these functions too.
Maybe we could condition the duplicate computation on some
additional not-commonly-defined macro? That'd do little for the
readability issue though.
regards, tom lane
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера