pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-performance@lists.postgresql.org
Subject: Surprising benchmark count(1) vs. count(*)
Date: Thu, 19 Sep 2019 12:09:32 +0200
Message-ID: <df354b76-a645-73fc-9645-4508e5291d71@gmx.net> (raw)

https://blog.jooq.org/2019/09/19/whats-faster-count-or-count1/

Is there a reason why count(*) seems to be faster? 






view thread (6+ messages)  latest in thread

Message-ID: <df354b76-a645-73fc-9645-4508e5291d71@gmx.net>
Permalink:  ../df354b76-a645-73fc-9645-4508e5291d71@gmx.net/
Also on:    postgresql.org/message-id/df354b76-a645-73fc-9645-4508e5291d71@gmx.net

 · 

reply

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-performance@postgresql.org
  Cc: spam_eater@gmx.net, pgsql-performance@lists.postgresql.org
  Subject: Re: Surprising benchmark count(1) vs. count(*)
  In-Reply-To: <df354b76-a645-73fc-9645-4508e5291d71@gmx.net>

* 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