Hi,I was looking at the code in hash_record()of src/backend/utils/adt/rowtypes.c
It seems if nulls[i] is true, we don't need to look up the hash function.
Please take a look at the patch.
Thanks