Re: How Postgresql Compares... Count(*) and others

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark kirkwood <markir(at)slingshot(dot)co(dot)nz>
Cc: Sean Chittenden <sean-pgsql-general(at)chittenden(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: How Postgresql Compares... Count(*) and others
Date: 2001-07-22 03:49:41
Message-ID: 499.995773781@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark kirkwood <markir(at)slingshot(dot)co(dot)nz> writes:
> I have not tried to see if it makes any difference in Postgresql...

Postgres converts count(*) to count(1) at the grammar stage (cf. gram.y,
about line 4817 in current sources). So if you think you detect any
performance difference, you're surely hallucinating...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ben-Nes Michael 2001-07-22 10:39:20 Re: VACUUM ANALYZE
Previous Message Dalibor Andzakovic 2001-07-22 03:21:09 databse design tools