Fix an unnecessary cast calling elog in ExecHashJoinImpl - Mailing list pgsql-hackers

From Tender Wang
Subject Fix an unnecessary cast calling elog in ExecHashJoinImpl
Date
Msg-id CAHewXN=s2thWwfWhugDLUhAn-UTtBPYLe_pPBfcH-DJ4PjMzpQ@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi,

While debugging the HashJoin codes, I noticed below codes in ExecHashJoinImpl():

elog(ERROR, "unrecognized hashjoin state: %d",
(int) node->hj_JoinState);

The type of hj_JoinState is already int, so the cast seems unnecessary.
So I remove it in the attached patch.

--
Thanks,
Tender Wang
Attachment

pgsql-hackers by date:

Previous
From: Nisha Moond
Date:
Subject: Re: Parallel Apply
Next
From: Shlok Kyal
Date:
Subject: Re: Issue with logical replication slot during switchover