Re: Really really slow select count(*)

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: felix <crucialfelix(at)gmail(dot)com>
Cc: sthomas(at)peak6(dot)com, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Really really slow select count(*)
Date: 2011-02-06 19:02:37
Message-ID: AANLkTikxM8r_0TjGmN+nn2iRPuJzQn6E8Beew1f7Mh-x@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, Feb 4, 2011 at 1:14 PM, felix <crucialfelix(at)gmail(dot)com> wrote:
>  schema_name |            table_name            |  row_count  | mb_used |
> total_mb_used
> -------------+----------------------------------+-------------+---------+---------------
>  public      | django_session                   | 1.47843e+07 |    4122 |
>       18832

So does this row still have 15M rows in it? Any old ones you can
delete, then run cluster on the table?

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2011-02-06 19:05:37 Re: general hardware advice
Previous Message Linos 2011-02-06 18:16:23 general hardware advice