Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jR5MN-0006Ck-5r for pgsql-general@arkaria.postgresql.org; Wed, 22 Apr 2020 02:43:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jR5MM-0007kT-1y for pgsql-general@arkaria.postgresql.org; Wed, 22 Apr 2020 02:43:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jR5ML-0007kM-EA for pgsql-general@lists.postgresql.org; Wed, 22 Apr 2020 02:43:33 +0000 Received: from sonic306-22.consmr.mail.ne1.yahoo.com ([66.163.189.84]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jR5MG-0003CQ-Vc for pgsql-general@postgresql.org; Wed, 22 Apr 2020 02:43:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1587523405; bh=Pc5xPxLWpvh/e1+87nXnE3XvDbxGR2S1hOzdQOpFyzM=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=kIyogBqhG5EfD3gShD1D5iT4ACGNyQihyEUDPpphFryx3+xHSltxqpu8vMUQc7XucWHw+HmI6iVzLlsbEOB85j4BetnFv/OBc4luXQIXL8xHJc9/ccxzkwwbEMxFW+4d7jO1SrithcVBPHHhr9aMehXzIWiUeOnNSkhUggE1MCz1rqqKrTCSOCw//zvGU1JpyYtuVIiXLc1pujBmFo+wExrwcvR+W/Ms1T6xh4LRZzGJMBYj7qTnx+W+GPPF/Yi1t+Xx9ZCqIg472qB7IXsS+aWkZvAdUdYXjwQ7YjESbUThk51eH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3hBrf3HpxWQKRCK84A5GWaOEzpYDw2.g7c2Y6H1u37E CmoAYZKS6ATnrVdQ6iSsZv_uGqi4IpQnoWs6.o_AI_S1p45Dq7u0v96rKHtN2mVjVl96smRjALLQ y3lz3Rp1ApXWszIRAYzvm8zgSORAtG6GwZdpiyIfT3VgofQugiEHaNikIVKtFIIP8.6rTBUG1oAQ Ht9e9mM6QbX9Jre330JLJyLQcjbFA5R5H.xMePevilaG41pYKFzm9bu4FlYJI45VchtpCslO49fU uAcLz53w6ZQAP7w0mQhoe0nZBrc_A1MTbJw3BtZ3ZRJigW2yQkHdlDMAWvMxwK3K1jF_k7_ixagy zhOXE28I3mrOd12y0HsfCDfeONflzm8eGSgTWLjfcXQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Wed, 22 Apr 2020 02:43:25 +0000 Date: Wed, 22 Apr 2020 02:43:22 +0000 (UTC) From: Virendra Kumar Reply-To: Virendra Kumar To: "pgsql-general@postgresql.org" , Kevin Brannen , Adrian Klaver Message-ID: <1392022649.706483.1587523402642@mail.yahoo.com> In-Reply-To: <655239f9-7ece-8f18-816b-68ed421d34e2@aklaver.com> References: <932472069.554849.1587504761819@mail.yahoo.com> <655239f9-7ece-8f18-816b-68ed421d34e2@aklaver.com> Subject: Re: how to slow down parts of Pg MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_706482_1612950638.1587523402642" X-Mailer: WebService/1.1.15739 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0 Content-Length: 39042 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_706482_1612950638.1587523402642 Content-Type: multipart/alternative; boundary="----=_Part_706481_1256489299.1587523402586" ------=_Part_706481_1256489299.1587523402586 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Adrian, Here is test case, basically when autovacuum runs it did release the space = to disk since it had may be continuous blocks which can be released to disk= but the space used by index is still being held until I ran the reindex on= the table (I assume reindex for index would work as well). Subsequent inse= rt statement did not utilize the blocks in index segment as we can see belo= w so index bloats are still not addressed or may be I am doing something wr= ong: postgres=3D# select version(); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 version=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0 ---------------------------------------------------------------------------= -------------------------------------- =C2=A0PostgreSQL 12.2 on x86_64-apple-darwin18.7.0, compiled by Apple LLVM = version 10.0.1 (clang-1001.0.46.4), 64-bit (1 row) postgres=3D#=20 postgres=3D# CREATE TABLE validate_pg_repack postgres-# ( postgres(#=C2=A0=C2=A0=C2=A0 effectivedate=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 timestamp, postgres(#=C2=A0=C2=A0=C2=A0 masterentityid=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 integer not null, postgres(#=C2=A0=C2=A0=C2=A0 primaryissueid=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 varchar(65535), postgres(#=C2=A0=C2=A0=C2=A0 longshortindicator=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 varchar(= 65535), postgres(#=C2=A0=C2=A0=C2=A0 pg_repack_id=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 varchar(65535) postgres(# ); CREATE TABLE postgres=3D# CREATE SEQUENCE validate_pg_repack_masterentityid_seq INCREMEN= T 1 START 1 OWNED BY validate_pg_repack.masterentityid; CREATE SEQUENCE postgres=3D#=20 postgres=3D# CREATE unique INDEX idx_pg_repack_masterentityid ON validate_p= g_repack USING btree (masterentityid); CREATE INDEX postgres=3D#=20 postgres=3D# CREATE INDEX idx_pg_repack_effectivedate ON validate_pg_repack= USING btree (effectivedate); CREATE INDEX postgres=3D#=20 postgres=3D# INSERT INTO validate_pg_repack (effectivedate,masterentityid,p= rimaryissueid,longshortindicator,pg_repack_id) SELECT=20 postgres-# now() + round(random() * 1000) * '1 second' :: interval,=20 postgres-# nextval('validate_pg_repack_masterentityid_seq'),=20 postgres-# 'some-phone-' || round(random() * 65000), postgres-# 'some-phone-' || round(random() * 1000), =C2=A0 postgres-# 'some-phone-' || round(random() * 1000) postgres-# FROM postgres-# generate_series(1, 900000); INSERT 0 900000 postgres=3D#=20 postgres=3D# select pg_sleep(30); =C2=A0pg_sleep=20 ---------- =C2=A0 (1 row) postgres=3D# select relname,n_tup_ins,n_tup_del,last_autoanalyze,autoanalyz= e_count from pg_stat_all_tables where relname =3D'validate_pg_repack'; =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 relname=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = | n_tup_ins | n_tup_del |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 last_autoanal= yze=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | autoanalyze_count=20 --------------------+-----------+-----------+------------------------------= -+------------------- =C2=A0validate_pg_repack |=C2=A0=C2=A0=C2=A0 900000 |=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 0 | 2020-04-21 19:34:09.579475-07 |=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 1 (1 row) postgres=3D# select pg_size_pretty(pg_relation_size('validate_pg_repack')); =C2=A0pg_size_pretty=20 ---------------- =C2=A080 MB (1 row) postgres=3D# \di+ idx_pg_repack_* =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 List of relations =C2=A0Schema |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 Name=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 | Type=C2=A0 |=C2=A0 Owner=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 Table=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | Size= =C2=A0 | Description=20 --------+------------------------------+-------+----------+----------------= ----+-------+------------- =C2=A0public | idx_pg_repack_effectivedate=C2=A0 | index | vvikumar | valid= ate_pg_repack | 24 MB |=20 =C2=A0public | idx_pg_repack_masterentityid | index | vvikumar | validate_p= g_repack | 19 MB |=20 (2 rows) postgres=3D# delete from validate_pg_repack where masterentityid > 450000; DELETE 450000 postgres=3D# select pg_sleep(30); =C2=A0pg_sleep=20 ---------- =C2=A0 (1 row) postgres=3D# select relname,n_tup_ins,n_tup_del,last_autoanalyze,autoanalyz= e_count from pg_stat_all_tables where relname =3D'validate_pg_repack'; =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 relname=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = | n_tup_ins | n_tup_del |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 last_autoanal= yze=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | autoanalyze_count=20 --------------------+-----------+-----------+------------------------------= -+------------------- =C2=A0validate_pg_repack |=C2=A0=C2=A0=C2=A0 900000 |=C2=A0=C2=A0=C2=A0 450= 000 | 2020-04-21 19:35:11.029405-07 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2 (1 row) postgres=3D#=20 postgres=3D# select pg_size_pretty(pg_relation_size('validate_pg_repack')); =C2=A0pg_size_pretty=20 ---------------- =C2=A040 MB (1 row) postgres=3D# \di+ idx_pg_repack_* =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 List of relations =C2=A0Schema |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 Name=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 | Type=C2=A0 |=C2=A0 Owner=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 Table=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | Size= =C2=A0 | Description=20 --------+------------------------------+-------+----------+----------------= ----+-------+------------- =C2=A0public | idx_pg_repack_effectivedate=C2=A0 | index | vvikumar | valid= ate_pg_repack | 24 MB |=20 =C2=A0public | idx_pg_repack_masterentityid | index | vvikumar | validate_p= g_repack | 19 MB |=20 (2 rows) postgres=3D# INSERT INTO validate_pg_repack (effectivedate,masterentityid,p= rimaryissueid,longshortindicator,pg_repack_id) SELECT=20 postgres-# now() + round(random() * 1000) * '1 second' :: interval,=20 postgres-# nextval('validate_pg_repack_masterentityid_seq'),=20 postgres-# 'some-phone-' || round(random() * 65000), postgres-# 'some-phone-' || round(random() * 1000), =C2=A0 postgres-# 'some-phone-' || round(random() * 1000) postgres-# FROM postgres-# generate_series(450000, 900000); INSERT 0 450001 postgres=3D# select pg_sleep(120); =C2=A0pg_sleep=20 ---------- =C2=A0 (1 row) postgres=3D#=20 postgres=3D# select relname,n_tup_ins,n_tup_del,last_autoanalyze,autoanalyz= e_count from pg_stat_all_tables where relname =3D'validate_pg_repack'; =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 relname=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = | n_tup_ins | n_tup_del |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 last_autoanal= yze=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | autoanalyze_count=20 --------------------+-----------+-----------+------------------------------= -+------------------- =C2=A0validate_pg_repack |=C2=A0=C2=A0 1350001 |=C2=A0=C2=A0=C2=A0 450000 |= 2020-04-21 19:37:10.829261-07 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 3 (1 row) postgres=3D#=20 postgres=3D#=20 postgres=3D# select pg_size_pretty(pg_relation_size('validate_pg_repack')); =C2=A0pg_size_pretty=20 ---------------- =C2=A080 MB (1 row) postgres=3D# \di+ idx_pg_repack_* =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 List of relations =C2=A0Schema |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 Name=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 | Type=C2=A0 |=C2=A0 Owner=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 Table=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | Size= =C2=A0 | Description=20 --------+------------------------------+-------+----------+----------------= ----+-------+------------- =C2=A0public | idx_pg_repack_effectivedate=C2=A0 | index | vvikumar | valid= ate_pg_repack | 39 MB |=20 =C2=A0public | idx_pg_repack_masterentityid | index | vvikumar | validate_p= g_repack | 29 MB |=20 (2 rows) postgres=3D# reindex table CONCURRENTLY validate_pg_repack; REINDEX postgres=3D#=20 postgres=3D# select pg_size_pretty(pg_relation_size('validate_pg_repack')); =C2=A0pg_size_pretty=20 ---------------- =C2=A080 MB (1 row) postgres=3D# \di+ idx_pg_repack_* =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 List of relations =C2=A0Schema |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 Name=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 | Type=C2=A0 |=C2=A0 Owner=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 Table=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | Size= =C2=A0 | Description=20 --------+------------------------------+-------+----------+----------------= ----+-------+------------- =C2=A0public | idx_pg_repack_effectivedate=C2=A0 | index | vvikumar | valid= ate_pg_repack | 19 MB |=20 =C2=A0public | idx_pg_repack_masterentityid | index | vvikumar | validate_p= g_repack | 19 MB |=20 (2 rows) postgres=3D#=20 postgres=3D# drop table validate_pg_repack cascade; DROP TABLE postgres=3D#=20 postgres=3D#=20 postgres=3D#=20 Regards, Virendra Kumar On Tuesday, April 21, 2020, 3:54:13 PM PDT, Adrian Klaver wrote: =20 =20 On 4/21/20 2:32 PM, Virendra Kumar wrote: > Autovacuum does takes care of dead tuples and return space to table's=20 > allocated size and can be re-used by fresh incoming rows or any updates. >=20 > Index bloat is still not being taken care of by autovacuum process. You= =20 > should use pg_repack to do index rebuild. Keep in mind that pg_repack=20 > requires double the space of indexes, since there will be two indexes=20 > existing during rebuild processes. You sure about that? On Postgres 12: --2020-04-21 15:47:27.452 PDT-0DEBUG:=C2=A0 plant1: vac: 5154 (threshold=20 1081), anl: 5154 (threshold 565) --2020-04-21 15:47:27.452 PDT-0DEBUG:=C2=A0 autovac_balance_cost(pid=3D1870= 1=20 db=3D25092, rel=3D26497, dobalance=3Dyes cost_limit=3D200, cost_limit_base= =3D200,=20 cost_delay=3D2) --2020-04-21 15:47:27.452 PDT-0DEBUG:=C2=A0 CommitTransaction(1) name:=20 unnamed; blockState: STARTED; state: INPROGRESS, xid/subid/cid: 0/1/0 --2020-04-21 15:47:27.452 PDT-0DEBUG:=C2=A0 StartTransaction(1) name:=20 unnamed; blockState: DEFAULT; state: INPROGRESS, xid/subid/cid: 0/1/0 --2020-04-21 15:47:27.452 PDT-0DEBUG:=C2=A0 vacuuming "public.plant1" --2020-04-21 15:47:27.504 PDT-0DEBUG:=C2=A0 scanned index "p_no_pkey" to=20 remove 5114 row versions --2020-04-21 15:47:27.504 PDT-0DETAIL:=C2=A0 CPU: user: 0.00 s, system: 0.0= 0=20 s, elapsed: 0.00 s --2020-04-21 15:47:27.514 PDT-0DEBUG:=C2=A0 scanned index "common_idx" to= =20 remove 5114 row versions --2020-04-21 15:47:27.514 PDT-0DETAIL:=C2=A0 CPU: user: 0.00 s, system: 0.0= 0=20 s, elapsed: 0.01 s --2020-04-21 15:47:27.515 PDT-0DEBUG:=C2=A0 scanned index "genus_idx" to=20 remove 5114 row versions --2020-04-21 15:47:27.515 PDT-0DETAIL:=C2=A0 CPU: user: 0.00 s, system: 0.0= 0=20 s, elapsed: 0.00 s --2020-04-21 15:47:27.517 PDT-0DEBUG:=C2=A0 "plant1": removed 5114 row=20 versions in 121 pages --2020-04-21 15:47:27.517 PDT-0DETAIL:=C2=A0 CPU: user: 0.00 s, system: 0.0= 0=20 s, elapsed: 0.00 s --2020-04-21 15:47:27.517 PDT-0DEBUG:=C2=A0 index "p_no_pkey" now contains= =20 5154 row versions in 31 pages --2020-04-21 15:47:27.517 PDT-0DETAIL:=C2=A0 5114 index row versions were= =20 removed. =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 index pages have been deleted, 0 are currentl= y reusable. =C2=A0 =C2=A0 =C2=A0 =C2=A0 CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.0= 0 s. --2020-04-21 15:47:27.517 PDT-0DEBUG:=C2=A0 index "common_idx" now contains= =20 5154 row versions in 60 pages --2020-04-21 15:47:27.517 PDT-0DETAIL:=C2=A0 5114 index row versions were= =20 removed. =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 index pages have been deleted, 0 are currentl= y reusable. =C2=A0 =C2=A0 =C2=A0 =C2=A0 CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.0= 0 s. --2020-04-21 15:47:27.517 PDT-0DEBUG:=C2=A0 index "genus_idx" now contains= =20 5154 row versions in 47 pages --2020-04-21 15:47:27.517 PDT-0DETAIL:=C2=A0 5114 index row versions were= =20 removed. =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 index pages have been deleted, 0 are currentl= y reusable. =C2=A0 =C2=A0 =C2=A0 =C2=A0 CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.0= 0 s. --2020-04-21 15:47:27.518 PDT-0DEBUG:=C2=A0 "plant1": found 5154 removable,= =20 5154 nonremovable row versions in 195 out of 195 pages --2020-04-21 15:47:27.518 PDT-0DETAIL:=C2=A0 0 dead row versions cannot be= =20 removed yet, oldest xmin: 9715 =C2=A0 =C2=A0 =C2=A0 =C2=A0 There were 256 unused item identifiers. =C2=A0 =C2=A0 =C2=A0 =C2=A0 Skipped 0 pages due to buffer pins, 0 frozen pa= ges. =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 pages are entirely empty. =C2=A0 =C2=A0 =C2=A0 =C2=A0 CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.0= 6 s. --2020-04-21 15:47:27.518 PDT-0LOG:=C2=A0 automatic vacuum of table=20 "production.public.plant1": index scans: 1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 pages: 0 removed, 195 remain, 0 skipped due to = pins, 0 skipped=20 frozen =C2=A0 =C2=A0 =C2=A0 =C2=A0 tuples: 5154 removed, 5154 remain, 0 are dead b= ut not yet=20 removable, oldest xmin: 9715 =C2=A0 =C2=A0 =C2=A0 =C2=A0 buffer usage: 753 hits, 0 misses, 255 dirtied =C2=A0 =C2=A0 =C2=A0 =C2=A0 avg read rate: 0.000 MB/s, avg write rate: 30.5= 86 MB/s =C2=A0 =C2=A0 =C2=A0 =C2=A0 system usage: CPU: user: 0.00 s, system: 0.00 s= , elapsed: 0.06 s >=20 > Regards, > Virendra Kumar >=20 --=20 Adrian Klaver adrian.klaver@aklaver.com =20 ------=_Part_706481_1256489299.1587523402586 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Adrian,

Here is test case, basically when autovacuum runs it did release the s= pace to disk since it had may be continuous blocks which can be released to= disk but the space used by index is still being held until I ran the reind= ex on the table (I assume reindex for index would work as well). Subsequent= insert statement did not utilize the blocks in index segment as we can see= below so index bloats are still not addressed or may be I am doing somethi= ng wrong:


postgres=3D# select version();
     &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;         version  &n= bsp;            = ;            &n= bsp;            = ;             <= br>------------------------------------------------------------------------= -----------------------------------------
 PostgreSQL 12.2 on x86_6= 4-apple-darwin18.7.0, compiled by Apple LLVM version 10.0.1 (clang-1001.0.4= 6.4), 64-bit
(1 row)

postgres=3D#
postgres=3D# CREATE TABLE v= alidate_pg_repack
postgres-# (
postgres(#    effective= date            = ;            &n= bsp;         timestamp,
postgres= (#    masterentityid      &nbs= p;            &= nbsp;           &nbs= p; integer not null,
postgres(#    primaryissueid &n= bsp;            = ;            &n= bsp;      varchar(65535),
postgres(#  = ;  longshortindicator        &= nbsp;           &nbs= p;        varchar(65535),
postgres(#&= nbsp;   pg_repack_id       &nb= sp;            =             &nb= sp;  varchar(65535)
postgres(# );
CREATE TABLE
postgres=3D# C= REATE SEQUENCE validate_pg_repack_masterentityid_seq INCREMENT 1 START 1 OW= NED BY validate_pg_repack.masterentityid;
CREATE SEQUENCE
postgres=3D= #
postgres=3D# CREATE unique INDEX idx_pg_repack_masterentityid ON vali= date_pg_repack USING btree (masterentityid);
CREATE INDEX
postgres=3D= #
postgres=3D# CREATE INDEX idx_pg_repack_effectivedate ON validate_pg_= repack USING btree (effectivedate);
CREATE INDEX
postgres=3D#
pos= tgres=3D# INSERT INTO validate_pg_repack (effectivedate,masterentityid,prim= aryissueid,longshortindicator,pg_repack_id) SELECT
postgres-# now() + r= ound(random() * 1000) * '1 second' :: interval,
postgres-# nextval('val= idate_pg_repack_masterentityid_seq'),
postgres-# 'some-phone-' || round= (random() * 65000),
postgres-# 'some-phone-' || round(random() * 1000), =  
postgres-# 'some-phone-' || round(random() * 1000)
postgres-# = FROM
postgres-# generate_series(1, 900000);
INSERT 0 900000
postgr= es=3D#
postgres=3D# select pg_sleep(30);
 pg_sleep
--------= --
 
(1 row)

postgres=3D# select relname,n_tup_ins,n_tup_= del,last_autoanalyze,autoanalyze_count from pg_stat_all_tables where relnam= e =3D'validate_pg_repack';
      relname &= nbsp;     | n_tup_ins | n_tup_del |   &n= bsp;   last_autoanalyze       = | autoanalyze_count
--------------------+-----------+-----------+-----= --------------------------+-------------------
 validate_pg_repack = |    900000 |        = ; 0 | 2020-04-21 19:34:09.579475-07 |      &n= bsp;          1
(1 row)
=
postgres=3D# select pg_size_pretty(pg_relation_size('validate_pg_repack= '));
 pg_size_pretty
----------------
 80 MB
(1 row)=

postgres=3D# \di+ idx_pg_repack_*
     =             &nb= sp;            =             List of = relations
 Schema |        =      Name       &nbs= p;     | Type  |  Owner   | &n= bsp;     Table       = ; | Size  | Description
--------+------------------------------+--= -----+----------+--------------------+-------+-------------
 public= | idx_pg_repack_effectivedate  | index | vvikumar | validate_pg_repac= k | 24 MB |
 public | idx_pg_repack_masterentityid | index | vviku= mar | validate_pg_repack | 19 MB |
(2 rows)

postgres=3D# delete = from validate_pg_repack where masterentityid > 450000;
DELETE 450000<= br>postgres=3D# select pg_sleep(30);
 pg_sleep
----------
&n= bsp;
(1 row)

postgres=3D# select relname,n_tup_ins,n_tup_del,last= _autoanalyze,autoanalyze_count from pg_stat_all_tables where relname =3D'va= lidate_pg_repack';
      relname  &nb= sp;    | n_tup_ins | n_tup_del |    &nbs= p;  last_autoanalyze        | autoa= nalyze_count
--------------------+-----------+-----------+-------------= ------------------+-------------------
 validate_pg_repack | &= nbsp;  900000 |    450000 | 2020-04-21 19:35:11.029405-= 07 |            = ;     2
(1 row)

postgres=3D#
postgres=3D#= select pg_size_pretty(pg_relation_size('validate_pg_repack'));
 pg= _size_pretty
----------------
 40 MB
(1 row)

postgres= =3D# \di+ idx_pg_repack_*
       &nbs= p;            &= nbsp;           &nbs= p;         List of relations
&nb= sp;Schema |          &nbs= p;  Name          &n= bsp;  | Type  |  Owner   |    =    Table        | Size  |= Description
--------+------------------------------+-------+----------= +--------------------+-------+-------------
 public | idx_pg_repack= _effectivedate  | index | vvikumar | validate_pg_repack | 24 MB |
=  public | idx_pg_repack_masterentityid | index | vvikumar | validate_p= g_repack | 19 MB |
(2 rows)

postgres=3D# INSERT INTO validate_pg= _repack (effectivedate,masterentityid,primaryissueid,longshortindicator,pg_= repack_id) SELECT
postgres-# now() + round(random() * 1000) * '1 second= ' :: interval,
postgres-# nextval('validate_pg_repack_masterentityid_se= q'),
postgres-# 'some-phone-' || round(random() * 65000),
postgres-#= 'some-phone-' || round(random() * 1000),  
postgres-# 'some-phone-= ' || round(random() * 1000)
postgres-# FROM
postgres-# generate_serie= s(450000, 900000);
INSERT 0 450001
postgres=3D# select pg_sleep(120);=
 pg_sleep
----------
 
(1 row)

<= /div>postgres=3D#
postgres=3D# select relname,n_tup_ins,n_tup_del,last_= autoanalyze,autoanalyze_count from pg_stat_all_tables where relname =3D'val= idate_pg_repack';
      relname  &nbs= p;    | n_tup_ins | n_tup_del |     = ;  last_autoanalyze        | autoan= alyze_count
--------------------+-----------+-----------+--------------= -----------------+-------------------
 validate_pg_repack | &n= bsp; 1350001 |    450000 | 2020-04-21 19:37:10.829261-07 |&n= bsp;            = ;    3
(1 row)

postgres=3D#
postgres=3D#
p= ostgres=3D# select pg_size_pretty(pg_relation_size('validate_pg_repack'));<= br> pg_size_pretty
----------------
 80 MB
(1 row)
<= br>postgres=3D# \di+ idx_pg_repack_*
      = ;            &n= bsp;            = ;           List of relat= ions
 Schema |         = ;    Name        &nb= sp;    | Type  |  Owner   |  &= nbsp;    Table        | S= ize  | Description
--------+------------------------------+-------= +----------+--------------------+-------+-------------
 public | id= x_pg_repack_effectivedate  | index | vvikumar | validate_pg_repack | 3= 9 MB |
 public | idx_pg_repack_masterentityid | index | vvikumar |= validate_pg_repack | 29 MB |
(2 rows)

postgres=3D# reindex tabl= e CONCURRENTLY validate_pg_repack;
REINDEX
postgres=3D#
postgres= =3D# select pg_size_pretty(pg_relation_size('validate_pg_repack'));
&nbs= p;pg_size_pretty
----------------
 80 MB
(1 row)

post= gres=3D# \di+ idx_pg_repack_*
       =             &nb= sp;            =           List of relations Schema |          =    Name         &nbs= p;   | Type  |  Owner   |   &n= bsp;   Table        | Size&nbs= p; | Description
--------+------------------------------+-------+------= ----+--------------------+-------+-------------
 public | idx_pg_re= pack_effectivedate  | index | vvikumar | validate_pg_repack | 19 MB | =
 public | idx_pg_repack_masterentityid | index | vvikumar | valida= te_pg_repack | 19 MB |
(2 rows)

postgres=3D#
postgres=3D# dr= op table validate_pg_repack cascade;
DROP TABLE
postgres=3D#
post= gres=3D#
postgres=3D#



<= /div>
Regards,
Virendra Kumar

=20
=20
On Tuesday, April 21, 2020, 3:54:13 PM PDT, Adrian Klav= er <adrian.klaver@aklaver.com> wrote:


On 4/21/20 2:32 PM, Virendra Kumar wr= ote:
> Autovacuum does takes care of dead tuples and r= eturn space to table's
> allocated size and can be re= -used by fresh incoming rows or any updates.
>
> Index bloat is still not being taken care of by autovacuum= process. You
> should use pg_repack to do index rebu= ild. Keep in mind that pg_repack
> requires double th= e space of indexes, since there will be two indexes
>= existing during rebuild processes.

Yo= u sure about that? On Postgres 12:

--2= 020-04-21 15:47:27.452 PDT-0DEBUG:  plant1: vac: 5154 (threshold
1081), anl: 5154 (threshold 565)
--2020-04-= 21 15:47:27.452 PDT-0DEBUG:  autovac_balance_cost(pid=3D18701
db=3D25092, rel=3D26497, dobalance=3Dyes cost_limit=3D200, cost_= limit_base=3D200,
cost_delay=3D2)
--20= 20-04-21 15:47:27.452 PDT-0DEBUG:  CommitTransaction(1) name:
unnamed; blockState: STARTED; state: INPROGRESS, xid/subid/cid: = 0/1/0
--2020-04-21 15:47:27.452 PDT-0DEBUG:  StartTr= ansaction(1) name:
unnamed; blockState: DEFAULT; state: = INPROGRESS, xid/subid/cid: 0/1/0
--2020-04-21 15:47:27.45= 2 PDT-0DEBUG:  vacuuming "public.plant1"
--2020-04-2= 1 15:47:27.504 PDT-0DEBUG:  scanned index "p_no_pkey" to
remove 5114 row versions
--2020-04-21 15:47:27.504 = PDT-0DETAIL:  CPU: user: 0.00 s, system: 0.00
s, el= apsed: 0.00 s
--2020-04-21 15:47:27.514 PDT-0DEBUG: = scanned index "common_idx" to
remove 5114 row versions<= br clear=3D"none">--2020-04-21 15:47:27.514 PDT-0DETAIL:  CPU: user: 0= .00 s, system: 0.00
s, elapsed: 0.01 s
--2020-04-21 15:47:27.515 PDT-0DEBUG:  scanned index "genus_idx" to <= br clear=3D"none">remove 5114 row versions
--2020-04-21 1= 5:47:27.515 PDT-0DETAIL:  CPU: user: 0.00 s, system: 0.00
s, elapsed: 0.00 s
--2020-04-21 15:47:27.517 PDT-0= DEBUG:  "plant1": removed 5114 row
versions in 121 = pages
--2020-04-21 15:47:27.517 PDT-0DETAIL:  CPU: u= ser: 0.00 s, system: 0.00
s, elapsed: 0.00 s
--2020-04-21 15:47:27.517 PDT-0DEBUG:  index "p_no_pkey" now co= ntains
5154 row versions in 31 pages
-= -2020-04-21 15:47:27.517 PDT-0DETAIL:  5114 index row versions were removed.
        0 = index pages have been deleted, 0 are currently reusable.
=         CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.= 00 s.
--2020-04-21 15:47:27.517 PDT-0DEBUG:  index "= common_idx" now contains
5154 row versions in 60 pages--2020-04-21 15:47:27.517 PDT-0DETAIL:  5114 index ro= w versions were
removed.
   =     0 index pages have been deleted, 0 are currently reusable.<= br clear=3D"none">        CPU: user: 0.00 s, system: 0= .00 s, elapsed: 0.00 s.
--2020-04-21 15:47:27.517 PDT-0DE= BUG:  index "genus_idx" now contains
5154 row versi= ons in 47 pages
--2020-04-21 15:47:27.517 PDT-0DETAIL:&nb= sp; 5114 index row versions were
removed.
        0 index pages have been deleted, 0 are cur= rently reusable.
        CPU: user: = 0.00 s, system: 0.00 s, elapsed: 0.00 s.
--2020-04-21 15:= 47:27.518 PDT-0DEBUG:  "plant1": found 5154 removable,
5154 nonremovable row versions in 195 out of 195 pages
--2020-04-21 15:47:27.518 PDT-0DETAIL:  0 dead row versions cannot b= e
removed yet, oldest xmin: 9715
 = ;       There were 256 unused item identifiers.
        Skipped 0 pages due to buffer pins, 0 f= rozen pages.
        0 pages are ent= irely empty.
        CPU: user: 0.00= s, system: 0.00 s, elapsed: 0.06 s.
--2020-04-21 15:47:2= 7.518 PDT-0LOG:  automatic vacuum of table
"product= ion.public.plant1": index scans: 1
      &= nbsp; pages: 0 removed, 195 remain, 0 skipped due to pins, 0 skipped
frozen
        tuples:= 5154 removed, 5154 remain, 0 are dead but not yet
remov= able, oldest xmin: 9715
        buff= er usage: 753 hits, 0 misses, 255 dirtied
    &= nbsp;   avg read rate: 0.000 MB/s, avg write rate: 30.586 MB/s
        system usage: CPU: user: 0.00 s, s= ystem: 0.00 s, elapsed: 0.06 s




>
> Regards,
> Virendra Kumar

>
<= br clear=3D"none">--
Adrian Klaver
adrian.klaver@aklaver.com

------=_Part_706481_1256489299.1587523402586-- ------=_Part_706482_1612950638.1587523402642 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test_case.sql" Content-ID: c2VsZWN0IHZlcnNpb24oKTsKCkNSRUFURSBUQUJMRSB2YWxpZGF0ZV9wZ19yZXBhY2sKKAogICBl ZmZlY3RpdmVkYXRlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpbWVzdGFtcCwK ICAgbWFzdGVyZW50aXR5aWQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbnRlZ2Vy IG5vdCBudWxsLAogICBwcmltYX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