Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h98xT-0004wo-41 for pgsql-admin@arkaria.postgresql.org; Wed, 27 Mar 2019 13:51:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h98xR-0001Od-SF for pgsql-admin@arkaria.postgresql.org; Wed, 27 Mar 2019 13:51:09 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h98xR-0001OW-A9 for pgsql-admin@lists.postgresql.org; Wed, 27 Mar 2019 13:51:09 +0000 Received: from mail-oln040092255080.outbound.protection.outlook.com ([40.92.255.80] helo=APC01-HK2-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h98xL-00082E-UI for pgsql-admin@lists.postgresql.org; Wed, 27 Mar 2019 13:51:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PaMhAI5K7WT0yAe44jW7FlnlchNt3Z079iJs9uzoCkI=; b=Ye/l+dqxT8mqt0jXB+R//XlkcJXO8fgdXBybW211f8nBXc5uV2oG1Efja7NAWle8VbY7I84rPyOQ1Rj16wgd6lIXmU4Kl8KdnT6sU6JOKJfD3VahR7mg/IHuOScT6YjwPcXySEqNsmW+h+U6Ttfs5tDastYX7+PeYk70jc0LFP1fitfIALVl1uTFuqdHoq9HvkDlbd+3u7gbTBIUB+JJoV0oqjoWQHGGuFXWWY1tK4vw1HwjIya9EP5nv53ljYkGEJ+fbW4fYAM2SXQlTZIRGArowR7b74oGz/vAZnZihqP2dkogNiKu5+0zNQZT4QToDjJGG0rt1dZl+8v44Pcjrg== Received: from PU1APC01FT029.eop-APC01.prod.protection.outlook.com (10.152.252.58) by PU1APC01HT039.eop-APC01.prod.protection.outlook.com (10.152.253.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1730.9; Wed, 27 Mar 2019 13:50:54 +0000 Received: from PN1PR01MB0813.INDPRD01.PROD.OUTLOOK.COM (10.152.252.58) by PU1APC01FT029.mail.protection.outlook.com (10.152.252.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.16 via Frontend Transport; Wed, 27 Mar 2019 13:50:54 +0000 Received: from PN1PR01MB0813.INDPRD01.PROD.OUTLOOK.COM ([fe80::d1e2:b869:dcc4:6e2d]) by PN1PR01MB0813.INDPRD01.PROD.OUTLOOK.COM ([fe80::d1e2:b869:dcc4:6e2d%11]) with mapi id 15.20.1730.019; Wed, 27 Mar 2019 13:50:54 +0000 From: Moin Akther To: "pgsql-admin@lists.postgresql.org" Subject: Unique Index Disk Consumption Thread-Topic: Unique Index Disk Consumption Thread-Index: AQHU5KNg3OPDT0Fjb0qvF8yZFtqPAQ== Date: Wed, 27 Mar 2019 13:50:54 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:F7B35A379B27E2B8661D002EE69E5EE17926127ACC2F89D6659BD7D45620287C;UpperCasedChecksum:BA17FDA854319BA46E31241D6D8F8E4CDF41E812DCD1491FC83402E8D2A67D45;SizeAsReceived:6608;Count:41 x-tmn: [SRq0oYr+w4xt93JDgp3m7CEK8TGT56mI] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:PU1APC01HT039; x-ms-traffictypediagnostic: PU1APC01HT039: x-microsoft-antispam-message-info: MhHqA++8iTL6I1BQbiHvh1YOhE1zN7X7Msm8qeBmFW/KEIXud6WIsLfQgIA7NyKE Content-Type: multipart/alternative; boundary="_000_PN1PR01MB08136DF37398A54E757D73A8AD580PN1PR01MB0813INDP_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: b1b9e7ac-d578-4cab-5e6f-08d6b2bb3b83 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2019 13:50:54.6087 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT039 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_PN1PR01MB08136DF37398A54E757D73A8AD580PN1PR01MB0813INDP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Experts, on a table we have 2 unique index's and when i check the table and unique i= ndex size, size of index's are twice the size of table. if have drop both the unique index's and create the new one but again after= some time index size is almost twice the size of table. Is Unique Index consume more disk space ? How can i manage this kind scenario ? as droping and recreating unique inde= x on the existing data is taking lot of time. Thanks and Best Regards, Moin Akther --_000_PN1PR01MB08136DF37398A54E757D73A8AD580PN1PR01MB0813INDP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Experts,

on a table we have 2 unique index's and when i check the table and unique i= ndex size, size of index's are twice the size of table.

if have drop both the unique index's and create the new one but again after= some time index size is almost twice the size of table.

Is Unique Index consume more disk space ?

How can i manage this kind scenario ? as droping and recreating unique inde= x on the existing data is taking lot of time.

Thanks and Best Regards,

Moin Akther


--_000_PN1PR01MB08136DF37398A54E757D73A8AD580PN1PR01MB0813INDP_--