Re: Change GUC hashtable to use simplehash? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Change GUC hashtable to use simplehash?
Date
Msg-id 1520769.1736991361@sss.pgh.pa.us
Whole thread Raw
In response to Re: Change GUC hashtable to use simplehash?  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
"Anton A. Melnikov" <a.melnikov@postgrespro.ru> writes:
> Seems it is possible to exclude much less code from checking
> under valgrind and get the same result by replacing the only
> function call pg_rightmost_one_pos64() with a valgrind-safe
> code. See the attached patch, please.

There is no place anywhere in our code base where we hide unsafe
code from valgrind rather than fixing said code.  This does not
seem like a place to start such an ugly practice.  Performance
does not trump everything else.

I'd be inclined to just remove the pg_rightmost_one_pos64 call
in favor of the other coding you suggest.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Hex-coding optimizations using SVE on ARM.
Next
From: Peter Smith
Date:
Subject: Re: POC: enable logical decoding when wal_level = 'replica' without a server restart