check for null value before looking up the hash function - Mailing list pgsql-hackers

From Zhihong Yu
Subject check for null value before looking up the hash function
Date
Msg-id CALNJ-vTN7miyUy4tYcBF6C1F9z-YhfecAGiBAO41062s4-S0zQ@mail.gmail.com
Whole thread Raw
Responses Re: check for null value before looking up the hash function
List pgsql-hackers
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
Attachment

pgsql-hackers by date:

Previous
From: Oleksii Kliukin
Date:
Subject: Re: Limiting memory allocation
Next
From: Michail Nikolaev
Date:
Subject: CPU time for pg_stat_statement