Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group