Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id C134064FDDB for ; Sun, 21 Dec 2008 20:48:31 -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 94686-07 for ; Sun, 21 Dec 2008 20:48:29 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mail.postgresql.org (Postfix) with ESMTP id DEF7464FDF5 for ; Sun, 21 Dec 2008 20:48:28 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-85-216-131.bk4-dsl.surnet.cl [200.85.216.131]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id mBM0q2sl009698 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 21 Dec 2008 16:52:08 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DF97947CCD; Sun, 21 Dec 2008 21:46:48 -0300 (CLST) Date: Sun, 21 Dec 2008 21:46:48 -0300 From: Alvaro Herrera To: Michael Monnerie Cc: pgsql-admin@postgresql.org Subject: Re: reindexdb dying with SIGPIPE on 8.2.5 Message-ID: <20081222004648.GC8720@alvh.no-ip.org> References: <1218035421.19154.24.camel@oberschatzi.cff> <200812190311.58087@zmi.at> <20081219030959.GM5447@alvh.no-ip.org> <200812212121.05678@zmi.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812212121.05678@zmi.at> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Sun, 21 Dec 2008 16:52:08 -0800 (PST) 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: 200812/172 X-Sequence-Number: 31005 Michael Monnerie wrote: > On Freitag 19 Dezember 2008 Alvaro Herrera wrote: > > You don't need to vacuum or reindex after a cluster; it removes all > > dead rows (except those that vacuum won't remove anyway) > > OK, but I do not cluster all tables, as it only makes sense for tables > which get read in some sequential (based on that index) way. For > completely random accessed tables I skip cluster, and rely on > vacuum/reindex. Right -- I'm just saying that if you cluster a table, you don't need to vacuum it. Of course, you need to vacuum all the other tables. > Also, I think pg_toast tables cannot be clustered, right? Not directly, but if you cluster a plain table, its toast table is clustered too. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.