Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: performance difference in count(1) vs. count(*)? - Mailing list pgsql-sql

From Tom Lane
Subject Re: performance difference in count(1) vs. count(*)?
Date
Msg-id [email protected]
Whole thread Raw
In response to performance difference in count(1) vs. count(*)?  (Markus Bertheau <[email protected]>)
List pgsql-sql
Markus Bertheau <[email protected]> writes:
> is there a difference performance-wise between select count(1) and
> select count(*)?

Nope.  In fact, the latter is converted to the former during parsing.
        regards, tom lane


pgsql-sql by date:

Previous
From: Markus Bertheau
Date:
Subject: performance difference in count(1) vs. count(*)?
Next
From: Josh Berkus
Date:
Subject: Abbr. for TIMESTAMP WITHOUT TIME ZONE?