Re: pgsql: Add assert checking to pg_leftmost_one_pos32() and friends - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Add assert checking to pg_leftmost_one_pos32() and friends
Date
Msg-id 3567481.1676906261@sss.pgh.pa.us
Whole thread Raw
In response to pgsql: Add assert checking to pg_leftmost_one_pos32() and friends  (John Naylor <john.naylor@postgresql.org>)
Responses Re: pgsql: Add assert checking to pg_leftmost_one_pos32() and friends
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Correctly set userid of subquery relations' child rels
Next
From: Tom Lane
Date:
Subject: pgsql: Remove gratuitous assumptions about what make_modifytable can se