> To me it looks good to clean up the conditions as you have done in the patch.
> Please add this to commitfest so that it's not forgotten. I have verified
> the code and indeed the conditions you are removing are unnecessary. So
> the patch can be marked as CFP right away.
Thank you for reviewing! added it to commitfest
https://commitfest.postgresql.org/30/2760/
Best regards,
houzj