Re: Fix casting away const in _bt_reorder_array_cmp - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Fix casting away const in _bt_reorder_array_cmp
Date
Msg-id 8341ef2b-858b-4374-9e7e-cf7d803bd464@eisentraut.org
Whole thread Raw
In response to Re: Fix casting away const in _bt_reorder_array_cmp  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
List pgsql-hackers
On 31.12.25 10:01, Bertrand Drouvot wrote:
> On Wed, Dec 31, 2025 at 03:51:55PM +0800, Chao Li wrote:
>> There have been several recent efforts to eliminate cast-away-const usages.
>> While reviewing another patch, I happened to notice one such occurrence, so
>> I’m posting a trivial patch to fix it.
> 
> Thanks for the patch!
> 
> This one is one that I choose to discard in [1] because this is just a thin
> wrapper. Not saying that keeping cast away const was a good thing but the idea
> was also to reduce the number of changes in the patch.

I have committed this one together with Bertrand's other changes.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Don't cast away const where possible
Next
From: Jim Jones
Date:
Subject: Re: WIP - xmlvalidate implementation from TODO list