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

Re: Curious about dead rows.

From: Jean-David Beyer <jeandavid8(at)verizon(dot)net>
To: pgsql performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Curious about dead rows.
Date: 2007-11-14 21:51:44
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Alvaro Herrera wrote:
> Jean-David Beyer wrote:
>> Mario Weilguni wrote:
>>> Did you rollback some transactions? It will generate dead rows too - at
>>> least I think so.
>> No, and the statistics confirm this.
> To recap:
> - your app only does inserts


> - there has been no rollback lately


> - there are no updates


> - there are no deletes

> The only other source of dead rows I can think is triggers ... do you
> have any? 

No triggers at all. I have sequences that were not in the IBM DB2 version of
this stuff. But they are all done earlier, before the CLUSTER of the entire
database. Furthermore, they are only for two tables, not the ones that
attracted my notice in the first place.

> (Not necessarily on this table -- perhaps triggers on other
> tables can cause updates on this one).
> Oh, rolled back COPY can cause dead rows too.
The only copies I ever do are those inside dbdump -- dbrestore, and they
come after all this stuff. And they do not roll back -- though I suppose
they could in principle.

  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey
 ^^-^^ 16:45:01 up 22 days, 10:03, 1 user, load average: 4.20, 4.22, 4.17

In response to

pgsql-performance by date

Next:From: Alan HodgsonDate: 2007-11-14 22:24:23
Subject: Re: dell versus hp
Previous:From: Russell SmithDate: 2007-11-14 21:46:05
Subject: Re: Curious about dead rows.

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