Re: duplicate function declaration in multirangetypes_selfuncs.c - Mailing list pgsql-hackers

From Anton Voloshin
Subject Re: duplicate function declaration in multirangetypes_selfuncs.c
Date
Msg-id bdf6f319-7767-ec6d-d194-97f1ceed2658@postgrespro.ru
Whole thread Raw
In response to Re: duplicate function declaration in multirangetypes_selfuncs.c  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
On 21/04/2023 14:14, Daniel Gustafsson wrote:
> I'll take care of these in a bit (unless someone finds more, or objects)
> backpatching them to their respective origins branches

Thanks!

I went through master with
find . -name "*.[ch]" -exec bash -c 'echo {}; uniq -d {}' \;|sed -E 
'/^[[:space:]*]*$/d;'

and could not find any other obvious unintentional duplicates, except 
the two mentioned already. There seems to be some strange duplicates in 
snowball, but that's external and generated code and I could not figure 
out quickly whether those are intentional or not. Hopefully, they are 
harmless or intentional.

All other duplicated lines I've analyzed seem to be intentional.

Granted, I've mostly ignored lines without ';', also I could have missed 
something, but currently I'm not aware of any other unintentionally 
duplicated lines.

-- 
Anton Voloshin
Postgres Professional, The Russian Postgres Company
https://postgrespro.ru



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Non-superuser subscription owners
Next
From: Daniel Gustafsson
Date:
Subject: Re: Minor code de-duplication in fe-connect.c