Re: pgsql: Add assert checking to pg_leftmost_one_pos32() and friends

Поиск
Список
Период
Сортировка
От 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  (John Naylor <john.naylor@enterprisedb.com>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Correctly set userid of subquery relations' child rels
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove gratuitous assumptions about what make_modifytable can se