Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 875C11337BA6 for ; Mon, 4 Apr 2011 13:02:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 18348-06 for ; Mon, 4 Apr 2011 16:02:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 89C381337B96 for ; Mon, 4 Apr 2011 13:02:14 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p34G2Di3000873; Mon, 4 Apr 2011 12:02:13 -0400 (EDT) To: Glyn Astill cc: Kenneth Marshall , pgsql-admin@postgresql.org Subject: Re: Bloated indexes from pg_restore? (Was: Index fillfactor changed in pg9?) In-reply-to: <669511.20278.qm@web26006.mail.ukl.yahoo.com> References: <669511.20278.qm@web26006.mail.ukl.yahoo.com> Comments: In-reply-to Glyn Astill message dated "Mon, 04 Apr 2011 16:28:58 +0100" Date: Mon, 04 Apr 2011 12:02:13 -0400 Message-ID: <872.1301932933@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/37 X-Sequence-Number: 37218 Glyn Astill writes: > So it appears now that if I restore the database using pg_restore, I end up with bloated indexes, which are fixed with a vacuum full. > The dump is a data only dump with the -Fc flag, Data only dump? Then what is the state of the database you're restoring it into? regards, tom lane