Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 8E8CC64FD9B for ; Wed, 12 Nov 2008 18:58:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 34272-01 for ; Wed, 12 Nov 2008 18:58:51 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mail.postgresql.org (Postfix) with ESMTP id 657B864FD2A for ; Wed, 12 Nov 2008 18:58:51 -0400 (AST) Received: by rv-out-0506.google.com with SMTP id b25so580800rvf.43 for ; Wed, 12 Nov 2008 14:58:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=qAhkV5Kvy2dmB8zAK4M7sWcj1pLdSh/N4+ISNowIaa0=; b=L7qLSXzOjdOSM67vttkW65RT/HBEdMQXSSKWUjD6tf2EZ+XNSCfNFiqmrFUiXUN3X4 cAhHxyNeGcQVvhCKupLZTR1hXmK8iVf/IWyplBYYmz7Uhxk6UjPuskgsgQ07Ee6fiptI 9F7Sy0kROpC8q4gLFcKbz9mgB0593kBLpT/M4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EPZ3wROq5j6GAMC/lrWzGng2HInLNI/xPU1v7tqDhr+ij+zSCNKocpIgCpcHtGnz3h +6ptRBQV2sRZC2CpvE9fiN5SMv9V00W5FVNWREoN6+lnA+lKe9WABLg2es6r1c5g0ftL bJBkv4sKvwrBlyPBq2OSlHTDVCMRTkg8x3ZHo= Received: by 10.115.74.16 with SMTP id b16mr6412880wal.222.1226530729711; Wed, 12 Nov 2008 14:58:49 -0800 (PST) Received: by 10.114.39.11 with HTTP; Wed, 12 Nov 2008 14:58:49 -0800 (PST) Message-ID: Date: Wed, 12 Nov 2008 15:58:49 -0700 From: "Scott Marlowe" To: firerox@centrum.cz Subject: Re: slow full table update Cc: pgsql-performance In-Reply-To: <200811122347.21602@centrum.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811101728.3048@centrum.cz> <200811101729.14977@centrum.cz> <200811101730.15902@centrum.cz> <200811122347.21602@centrum.cz> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200811/113 X-Sequence-Number: 31844 This is the critical point. You have this line: There were 132969 unused item pointers. Which says there's 132k or so dead rows in your table. Which means vacuum / autovacuum isn't keeping up. Did you try and stop the update several times? Each time it starts then gets killed it creates dead rows. Try doing a vacuum full followed by a reindex OR a cluster on this table and see if that helps.