From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: performance difference in count(1) vs. count(*)?
Date: Sun, 28 Jul 2002 13:02:49 -0400
Message-ID: <11471.1027875769@sss.pgh.pa.us> (raw)
In-Reply-To: <1027871441.7362.0.camel@saphir>
References: <1027871441.7362.0.camel@saphir>
Markus Bertheau <twanger@bluetwanger.de> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, twanger@bluetwanger.de
Subject: Re: performance difference in count(1) vs. count(*)?
In-Reply-To: <11471.1027875769@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox