Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 5EED82E18EC for ; Tue, 13 Nov 2007 23:36:16 -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 71741-10 for ; Tue, 13 Nov 2007 23:36:13 -0400 (AST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by postgresql.org (Postfix) with ESMTP id A17072E1382 for ; Tue, 13 Nov 2007 23:36:13 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id f5so35782nfh for ; Tue, 13 Nov 2007 19:36:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=jwE2N+oQLIJuRSGy9U3CFb08P/rIRfG6Ubf5Z6eLHEk=; b=RtjRrs48IR8WCUDlNhzeFudokC8iREItj9Dp9xSH8DV3SBi8yCJC4ixr95+XtihfEi8lxFW822yK1oy8D2afgzJf/mwoCIm7ssatQkeHA7TqJd+T3/pF8G2ZRl6dYtCG850erV72JfJfXm7r7aSCyexIm/eIDc5tkG1mKlBFL+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IjlXHdS4dVY45TzEv0/pupuTeftGFfKEuaM4AqlDIShxJfUKtHdeqFhDQSonhLe8TULP17aZM0xPZeIzzCsLzZgc3UOY+AlrRIKCXs+bEqDEy38gQT4CSxtLIksFKV0qpep7b1LFzhTrGvpQoIkjoU50NWgfc0hqq6GytObecFg= Received: by 10.78.83.15 with SMTP id g15mr1493847hub.1195011371876; Tue, 13 Nov 2007 19:36:11 -0800 (PST) Received: by 10.78.18.2 with HTTP; Tue, 13 Nov 2007 19:36:11 -0800 (PST) Message-ID: Date: Tue, 13 Nov 2007 22:36:11 -0500 From: "Merlin Moncure" To: "Jean-David Beyer" Subject: Re: Curious about dead rows. Cc: "pgsql performance" In-Reply-To: <473A5CC0.3060003@verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4735DBDB.5050208@verizon.net> <16627.1194714491@sss.pgh.pa.us> <4735FA9F.1080805@verizon.net> <473A5CC0.3060003@verizon.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/209 X-Sequence-Number: 27624 On Nov 13, 2007 9:26 PM, Jean-David Beyer wrote: > Merlin Moncure wrote: > > what does pg_stat_all_tables say (assuming row level stats are on)? > It says stuff like this: > > relname | seq_scan | seq_tup_read | idx_scan | idx_tup_fetch | n_tup_ins | > n_tup_upd | n_tup_del > ----------+----------+--------------+----------+---------------+-----------+- > ibd | 75 | 9503850 | 11 | 2350555 | 2416845 | > 0 | 0 > vl_cf | 139 | 38722575 | 22 | 5392609 | 5692814 | > 0 | 0 > vl_li | 139 | 39992838 | 22 | 5569855 | 5885516 | > 0 | 0 > > I removed the relid and schemaname and squeezed the other columns so it > would not be quite so wide. Is this what you might like to know? it tells me that you aren't crazy, and that rollbacks are the likely the cause, although you appear to be watching the logs pretty carefully. you can check pg_stat_database to confirm if your rollbacks are in line with your expectations. or, you might by seeing some corner case conditions...are any fields in the table foreign keyed to another table (cascading update/delete)? do you have any functions with handled exceptions or savepoints? (I'm guessing no to the latter). merlin