Hi, In [1], David Rowley noted that COUNT(NULL) can be replaced with '0'::bigint. The change should be straightforward, and I came up with the attached patch to implement it.
[1] https://www.postgresql.org/message-id/CAApHDvrde9DUpQ3DhPd3ia9tchVmhZqewfzxSYWmYFWVj%3DLPpg%40mail.gmail.com -- Regards Junwang Zhao
0001-Replace-COUNT-NULL-with-0-bigint.patch
Description: Binary data
