Re: Slow sequential scans on one DB but not another; fragmentation?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Harris <lists(at)spuddy(dot)org>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Slow sequential scans on one DB but not another; fragmentation?
Date: 2007-03-28 15:07:54
Message-ID: 24968.1175094474@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephen Harris <lists(at)spuddy(dot)org> writes:
> I have one specific table ("sweep_users") that has 900,000 rows in prod
> and 630,000 on the standby. On the standby a "select count(*) from
> sweep_users" takes a couple of seconds. On production it takes... 240
> seconds!

Lots of dead rows/free space perhaps? What does VACUUM VERBOSE have to
say about this table on each machine?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jaime Silvela 2007-03-28 15:15:44 Re: unexpected data beyond EOF and character encoding
Previous Message Tom Lane 2007-03-28 15:02:30 Re: unexpected data beyond EOF and character encoding