Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 95F152E2E50 for ; Wed, 14 Nov 2007 17:52:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 77226-09 for ; Wed, 14 Nov 2007 17:52:13 -0400 (AST) Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by postgresql.org (Postfix) with ESMTP id 537922E2D42 for ; Wed, 14 Nov 2007 17:52:13 -0400 (AST) Received: from [192.168.0.251] ([71.251.196.74]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JRI00HD9MZ58SF0@vms173001.mailsrvcs.net> for pgsql-performance@postgresql.org; Wed, 14 Nov 2007 15:42:42 -0600 (CST) Date: Wed, 14 Nov 2007 16:51:44 -0500 From: Jean-David Beyer Subject: Re: Curious about dead rows. In-reply-to: <20071114213504.GW19014@alvh.no-ip.org> To: pgsql performance Message-id: <473B6DF0.8020206@verizon.net> Organization: Institute for Regimented Whimsey MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.94.0.0 References: <4735DBDB.5050208@verizon.net> <473B4AB4.70506@sime.com> <473B6398.9030507@verizon.net> <20071114213504.GW19014@alvh.no-ip.org> User-Agent: Thunderbird 1.5.0.9 (X11/20070317) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/222 X-Sequence-Number: 27637 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 True. > - there has been no rollback lately True. > - there are no updates True > - there are no deletes True. > > 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 http://counter.li.org ^^-^^ 16:45:01 up 22 days, 10:03, 1 user, load average: 4.20, 4.22, 4.17