Re: How Postgresql Compares... Count(*) and others - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: How Postgresql Compares... Count(*) and others
Date
Msg-id 20010722094415.A31190@wolff.to
Whole thread Raw
In response to How Postgresql Compares... Count(*) and others  (Mark kirkwood <markir@slingshot.co.nz>)
List pgsql-general
On Sun, Jul 22, 2001 at 03:06:52PM +1200,
  Mark kirkwood <markir@slingshot.co.nz> wrote:
> Last time I tested this on the big O ( early 8.0.x ) count(*) was always
> fractionally quicker.... there was a body of thought at the time that said
> count(1) or count(<field>) was quicker.... no idea where it came from.

Note that count(<field>) and count(*) are not equivalent. count(<field>)
counts only rows where <field> isn't null.

pgsql-general by date:

Previous
From: Buddy Lee Haystack
Date:
Subject: Re: Planner estimates cost of 'like' a lot lower than '='??
Next
From: Mats Lofkvist
Date:
Subject: Re: Planner estimates cost of 'like' a lot lower than '='??