[PATCH] Replace COUNT(NULL) with '0'::bigint - Mailing list pgsql-hackers

From Junwang Zhao
Subject [PATCH] Replace COUNT(NULL) with '0'::bigint
Date
Msg-id CAEG8a3K1OZJm2k2W9ijasqQr3qkM2Ggy2LfB0ZP+cwLhEYzbeQ@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] Replace COUNT(NULL) with '0'::bigint
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Alexander Lakhin
Date:
Subject: Re: pg_stat_statements: add missing tests for nesting_level
Next
From: David Rowley
Date:
Subject: Re: Fix a reference error for window functions: In the function 'find_window_functions', the deduplication logic should be removed