Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 690501337A5D for ; Mon, 4 Apr 2011 12:29:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 33994-02 for ; Mon, 4 Apr 2011 15:29:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm11-vm0.bullet.mail.ukl.yahoo.com (nm11-vm0.bullet.mail.ukl.yahoo.com [217.146.183.244]) by mail.postgresql.org (Postfix) with SMTP id 7789B1337B4E for ; Mon, 4 Apr 2011 12:28:59 -0300 (ADT) Received: from [217.146.183.212] by nm11.bullet.mail.ukl.yahoo.com with NNFMP; 04 Apr 2011 15:28:58 -0000 Received: from [217.146.183.72] by tm5.bullet.mail.ukl.yahoo.com with NNFMP; 04 Apr 2011 15:28:58 -0000 Received: from [127.0.0.1] by omp1033.mail.ukl.yahoo.com with NNFMP; 04 Apr 2011 15:28:58 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 878936.52718.bm@omp1033.mail.ukl.yahoo.com Received: (qmail 21725 invoked by uid 60001); 4 Apr 2011 15:28:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1301930938; bh=pQOZaT0ybRuoni7/D2Sgyk232KNDsDGlT0hn49um8Cg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ySniYAF/otipvpL+rVYGnzRK2MYmf0tg7gVJfcnL/Gn0+Tbn9lPjmEhosM6I83ba/C/XoDsG7eXoYys1/5LBlUv4pHnvE3pyzFiAHgDNhPn5vAud0vhOKKWtYj7dmhugYR/8K5v7LUB8tdDkL1gwa6I7LJ/9xbDfUVwFZuu2iW8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=atpoia2B694Q4rqWmmljfAE//debetGfjcuiU4NSee3sxjCPeLUD1iyTfeGVp1Q8YHT9Ch8/x2F/OJWJjByy6NnbM/T5E2yIqXnfvyNrTDEoLu0t6QPRqwb/JXH7t/l8yeJ6SjuDTwaifc4T1XqouaJtoRnvis4/z3527I09ZQE=; Message-ID: <669511.20278.qm@web26006.mail.ukl.yahoo.com> X-YMail-OSG: h2FCFwQVM1mN_j2Jy6U8IWb.vC8dDzIL0En6DwDDaKHeGpw NpJ_g7bRtOnm9JWWOZ.U2YSjPDQ9AvCeMtnXPORwIhzBsefMY.H7WlvtbDSH AoRUP5DIWBP9qbx_VpF9Ijq0xnI7USNS2fxf4MgC7kD11rm6laJAeSJ1ViFw qTWulK6SiT2hWD9IQtMlmwKyiBFzhlTvQVpbR6l4OrgoQAHLgJlrBhp1mkdK WppilLc2rhE9cX351tVzMeu921LQwhg_0Bk4GBs3jYQDT5LTYE99mjQrdCRR mC8Iw2Y07w4EwPntQUehAaEvnXiEfuEBC_AEs9T4CuG2FePJhWYD4Xc6Ebsn mTDWWO.Ux9wH1iMRTyD9OL.vbOMYG Received: from [83.100.146.195] by web26006.mail.ukl.yahoo.com via HTTP; Mon, 04 Apr 2011 16:28:58 BST X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.109.295617 Date: Mon, 4 Apr 2011 16:28:58 +0100 (BST) From: Glyn Astill Subject: Re: Bloated indexes from pg_restore? (Was: Index fillfactor changed in pg9?) To: Kenneth Marshall Cc: pgsql-admin@postgresql.org In-Reply-To: <983729.42184.qm@web26003.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201104/35 X-Sequence-Number: 37216 --- On Fri, 1/4/11, Glyn Astill wrote:=0A> --- On = Fri, 1/4/11, Kenneth Marshall wrote:=0A> What=0A> > happens=0A> > if you ru= n a REINDEX on both DB's to the index sizes?=0A> > =0A> > Regards,=0A> > Ke= n=0A> > =0A> =0A> Sorry for the lack of info there. Both are 64 bit, both= =0A> have ext3 filesystems set up the same, the 8.4 machine is on=0A> kerne= l 2.6.26 whereas the 9.0 machine is on 2.6.32.=0A> =0A> REINDEX does indeed= decreace the size.=A0 I guess the=0A> question is why does pg_restore crea= te them bloated? Could=0A> it be the parrallel (-j) option?=0A> =0A=0ASo 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.=0A=0AThe dump is a da= ta only dump with the -Fc flag, taken with pg_dump as follows=0A=0Apg_dump = -Fc mydatabase -U postgres -h localhost -a --disable-triggers -f data-dump.= gz=0A=0AThat appears to restore with COPY, using the following =0A=0Apg_res= tore -U postgres --disable-triggers -c -d mydatabase data-dump.gz=0A=0AI'm = a bit perplexed by this