Fix an unnecessary cast calling elog in ExecHashJoinImpl

Tender Wang <tndrwang@gmail.com>

From: Tender Wang <tndrwang@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-08-30T06:09:27Z
Lists: pgsql-hackers

Attachments

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