Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E3AA16503B4 for ; Wed, 6 Aug 2008 12:47:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 62161-06 for ; Wed, 6 Aug 2008 12:47:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail1.cbxnet.de (mail1.cbxnet.de [212.87.33.16]) by postgresql.org (Postfix) with ESMTP id AC1FE6503A9 for ; Wed, 6 Aug 2008 12:47:51 -0300 (ADT) Received: from combox.de ([212.87.33.8] helo=welt.combox.de) by mail1.cbxnet.de with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KQkec-0005qB-4g for pgsql-admin@postgresql.org; Wed, 06 Aug 2008 17:10:22 +0200 Received: from [192.168.5.254] by welt.combox.de with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KQkea-000145-Pf for pgsql-admin@postgresql.org; Wed, 06 Aug 2008 17:10:20 +0200 Subject: reindexdb dying with SIGPIPE on 8.2.5 From: Torsten Luettgert To: pgsql-admin@postgresql.org Content-Type: text/plain Date: Wed, 06 Aug 2008 17:10:21 +0200 Message-Id: <1218035421.19154.24.camel@oberschatzi.cff> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit 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: 200808/23 X-Sequence-Number: 29868 Hello all, we're using PostgreSQL 8.2.5 with some 300 databases under CentOS 4.6. To reduce on-disk size of our DBs, we're doing the following after the nightly dumps: reindexdb dbname vacuumdb -f -z dbname Now, this works fine about 50% of the time, but on some machines, the reindexdb dies from a SIGPIPE signal. The logs look like this: Aug 3 04:08:10 prospero postgres[27101]: [1-1] NOTICE: table "pg_class" was reindexed Aug 3 04:08:11 prospero postgres[27101]: [2-1] NOTICE: table "sql_sizing" was reindexed Aug 3 04:08:11 prospero postgres[27101]: [3-1] LOG: could not send data to client: Broken pipe Aug 3 04:08:11 prospero postgres[27101]: [4-1] NOTICE: table "sql_sizing_profiles" was reindexed Aug 3 04:08:11 prospero postgres[27101]: [5-1] NOTICE: table "sql_features" was reindexed ... Aug 3 04:08:18 prospero postgres[27101]: [39-1] NOTICE: table "shoprules" was reindexed Aug 3 04:08:18 prospero postgres[27101]: [40-1] LOG: unexpected EOF on client connection So, it looks to me like the REINDEX command is completed, but the reindexdb tool dies. This is run via a nightly cronjob; I never saw those problems if I invoke reindexdb on the command line. We did get a notice to increase max_fsm_pages at first though, so we increased it with good margin, but the SIGPIPE problem persists. What is going wrong here? Thanks for your help, Torsten