Re: select count(*) from a large table is very slow

From: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
To: "Daniel Cristian Cruz" <danielcristian(at)gmail(dot)com>
Cc: "Kenneth Marshall" <ktm(at)rice(dot)edu>, "Jessica Richard" <rjessil(at)yahoo(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: select count(*) from a large table is very slow
Date: 2007-05-18 14:00:01
Message-ID: 36e682920705180700n7a6df052pfbbc19ba185886f8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 5/18/07, Daniel Cristian Cruz <danielcristian(at)gmail(dot)com> wrote:
> Oops... INSERT or DELETE... :)

Heh, yeah... doh!

> And remember that if using TRUNCATE, it will not run your trigger and
> you will need to reset the counter manually.

Correct.

--
Jonah H. Harris, Software Architect | phone: 732.331.1324
EnterpriseDB Corporation | fax: 732.331.1301
33 Wood Ave S, 3rd Floor | jharris(at)enterprisedb(dot)com
Iselin, New Jersey 08830 | http://www.enterprisedb.com/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Joshua D. Drake 2007-05-18 14:24:19 Re: cross database references...
Previous Message Daniel Cristian Cruz 2007-05-18 13:58:59 Re: select count(*) from a large table is very slow