Re: Why SELECT COUNT(*) takes so long?

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: Matthias Apitz <guru(at)unixarea(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Why SELECT COUNT(*) takes so long?
Date: 2020-09-14 06:11:31
Message-ID: 4C1EEF4D-067B-4A4A-9BEB-F12FB88A7F3F@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Sep 13, 2020, at 23:09, Matthias Apitz <guru(at)unixarea(dot)de> wrote:
> Why a SELECT COUNT(*) of the
> full table takes around 1 minute:

There's an explanation here:

https://wiki.postgresql.org/wiki/Slow_Counting

--
-- Christophe Pettus
xof(at)thebuild(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2020-09-14 08:08:27 Re: Reg:CHARSET_COVERSION_LATIN_TO_UTF8
Previous Message Matthias Apitz 2020-09-14 06:09:44 Why SELECT COUNT(*) takes so long?