Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjAuI-0003T3-Ui for pgsql-admin@arkaria.postgresql.org; Sun, 11 Sep 2016 19:59:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjAuH-0001UU-AB for pgsql-admin@arkaria.postgresql.org; Sun, 11 Sep 2016 19:59:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjAuF-0001UL-QG for pgsql-admin@postgresql.org; Sun, 11 Sep 2016 19:59:11 +0000 Received: from pro-open.de ([87.106.136.39] helo=www.pro-open.de) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjAuC-0001WY-8G for pgsql-admin@postgresql.org; Sun, 11 Sep 2016 19:59:11 +0000 Received: from [192.168.0.243] (aftr-37-201-243-176.unity-media.net [37.201.243.176]) by www.pro-open.de (Postfix) with ESMTP id D798E100A09E for ; Sun, 11 Sep 2016 21:59:01 +0200 (CEST) Subject: Re: Index bloat? Try pgindexrebuild, a production friendly index debloater To: pgsql-admin@postgresql.org References: From: "Gunnar \"Nick\" Bluth" Message-ID: <26693db4-aa1a-4f68-54aa-0401becca334@pro-open.de> Date: Sun, 11 Sep 2016 21:58:52 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MihqewSI8jTpJaxIIKjG08Rs36FA1HRUJ" X-Pg-Spam-Score: -4.1 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MihqewSI8jTpJaxIIKjG08Rs36FA1HRUJ Content-Type: multipart/mixed; boundary="NOqjf7D49HH6cM4MR84KHS428LDd0tswK"; protected-headers="v1" From: "Gunnar \"Nick\" Bluth" To: pgsql-admin@postgresql.org Message-ID: <26693db4-aa1a-4f68-54aa-0401becca334@pro-open.de> Subject: Re: [ADMIN] Index bloat? Try pgindexrebuild, a production friendly index debloater References: In-Reply-To: --NOqjf7D49HH6cM4MR84KHS428LDd0tswK Content-Type: multipart/mixed; boundary="------------100631D4FEA38F5681A153A4" This is a multi-part message in MIME format. --------------100631D4FEA38F5681A153A4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am 06.09.2016 um 09:16 schrieb Rory McCann: > Hello all, Hi Rory, >=20 > If you use/update a PostgreSQL server for a long time, > one problem you may come across is index bloat. Your database will grow= > in size on your disk, your indexes getting larger on disk. It's no fun > when your database fills up the disk and won't start anymore. I've had > this problem when using Nominatim, an open source address geocoder for > OpenStreetMap/ >=20 > There are several solutions to this, but I wanted a way to fix index > bloat while still being able to use the database as a production > database, so I wrote pgindexrebuild: >=20 > https://github.com/rory/pgindexrebuild Sounds promising. You might want to post that to -announce as well? Cheers, --=20 Gunnar "Nick" Bluth RHCE/SCLA Mobil +49 172 8853339 Email: gunnar.bluth@pro-open.de _____________________________________________________________ In 1984 mainstream users were choosing VMS over UNIX. Ten years later they are choosing Windows over UNIX. What part of that message aren't you getting? - Tom Payne --------------100631D4FEA38F5681A153A4 Content-Type: application/pgp-keys; name="0x3289338C.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0x3289338C.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQENBFOuo7ABCADU3rFM4gBv4l/Xjfry27pfdYgvWrcR1RA/vLfOgjqivSbMQEHH bTWprJRjB2EbzmTS+faSa/V+mH/jIKBytCc5+hprBd/m5if3/v2PKA7+MHsy1H9T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Xmi1TABEB AAGJASUEGAECAA8FAlOuo7ACGwwFCQlmAYAACgkQEBCuazKJM4xN1wf+MPLXrQ10 LBRtYjD16LsvxDyEcSMoWGc26DO/TDsGwme2NVfL0JufExgdpvkk/x4wzBwdkYfF dNKU3CyA+3T4FuKGL7RPrICJa+VdCvwMk8dzLqF0UgdfVHtCnUQoQmNnDD7gODw/ GTIKpWw+iEE2/EANAONXj7EC+VsW895/C5aQEZx++cSonrHFSSIUp1OGJoVlmFnJ MFCTTElmayTcmfOwGHrn97Et5YePMOsyqWZas+URuJveoTdGhDToOIufECGb3WJa J8rFL+ni3NKoiZhZMYVQ+XC8f64Mi5kXlfsylVu6kgCoFqnq7FTpwqOiRml4APeX GBC6uZW6fUGNDQ=3D=3D =3D//tm -----END PGP PUBLIC KEY BLOCK----- --------------100631D4FEA38F5681A153A4-- --NOqjf7D49HH6cM4MR84KHS428LDd0tswK-- --MihqewSI8jTpJaxIIKjG08Rs36FA1HRUJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJX1beDAAoJEBAQrmsyiTOMhhAH/1GUTmSUAAxTFrZML19dX2nf U9RjG/rdVwBXLSUNivCjajMkDaxvLBz8yzkO7DOv1lzTkwrjVm+HsAsSEV+nXV5l 8kSyh7IhpB72de7udME5xso/FaKn1RWRtcZLpKELPMkuy+dlvNbV97X7ADVd/9qy hUJ+1U7eJf04Wi+PzTZXev+1xypwgZN5EDIvcrSAyYxJskH65X3ysSoinqJnb1m2 gUIJO8F0V6NGy7JtGcBj9Io+dk2+7e2zC6ebJ/eVOqLvyK+NQFlQ5P8AInRqrleN hytxxhS95BShr2FrSnZ8oFbWFnqXa66Wu+EjjbltlUO1lXcFMLc1csC6Sqra/Ho= =mWvG -----END PGP SIGNATURE----- --MihqewSI8jTpJaxIIKjG08Rs36FA1HRUJ--