Re: Remove useless casting to the same type - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Remove useless casting to the same type
Date
Msg-id aSSnULSBJJ3_6pPo@nathan
Whole thread Raw
In response to Remove useless casting to the same type  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Remove useless casting to the same type
List pgsql-hackers
On Mon, Nov 24, 2025 at 10:26:32AM +0000, Bertrand Drouvot wrote:
> This is the same kind of idea as 7f798aca1d5 and ef8fe693606, as their presence
> could cause risks of hiding actual type mismatches in the future or silently
> discarding qualifiers. I think that it also improves readability.

Seems reasonable to me.

> Note that it generated more that what is in the attached. I chose not to remove
> some of them (mainly arithmetic ones) to keep the patch focused on what matters
> here.

Can you give an example of what you are talking about here?

-- 
nathan



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: pgsql: Teach DSM registry to ERROR if attaching to an uninitialized ent
Next
From: David Geier
Date:
Subject: Re: get rid of Pointer type, mostly