[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pgsql-performance
Subject:    Re: [PERFORM] which one is faster
From:       Grzegorz_Jaƛkiewicz <gryzman () gmail ! com>
Date:       2010-10-26 12:20:33
Message-ID: AANLkTimx3bcBoxVeU1CLVONGn+UE-Cf14UzNPgciL6Vp () mail ! gmail ! com
[Download RAW message or body]

2010/10/26 Szymon Guz <mabewlun@gmail.com>:
>
> Well, strange. Why is that slower?

To answer that fully, you would need to see the implementation.
suffice to say,

count(a) does:

if (a <> NULL)
{
  count++;
}

and count(*) does:

  count++;



-- 
GJ

-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic