Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNVBT-000AvE-Mn for pgsql-admin@arkaria.postgresql.org; Tue, 17 Dec 2024 10:52:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tNVBR-000n4O-Pa for pgsql-admin@arkaria.postgresql.org; Tue, 17 Dec 2024 10:52:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNVBR-000n3f-DK for pgsql-admin@lists.postgresql.org; Tue, 17 Dec 2024 10:52:09 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tNVBO-0008YV-1e for pgsql-admin@postgresql.org; Tue, 17 Dec 2024 10:52:08 +0000 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2ee709715d9so3548859a91.3 for ; Tue, 17 Dec 2024 02:52:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734432724; x=1735037524; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kz81swbs3lCanBACkM3ZBjKb/yhPMbO2NCV2+GEWKLk=; b=EySO0AUlMB1AqbYuzs67VogVvprqdYvSl0be2zHLJ67RQVl6/n8gMIyP4uSFzqMul2 VLaRndXl649ZSIAVRpSt7wG/LqVYM7AHXT59BiULmL6AeUeOFTXfuThT0/Om+vzriuPa 6SxX52ATfbBnE8tM0aogvx2jafzoeow8I2EZ06Gq9dDfVzO1kjbknkgGDqCV+2/95W71 aH3JE19xm3npFCd452VnMEeuS8MR+406QQxpmNDWPk14iu2WGCqFz9xLST9pMP37O6xD 0t81voDx2GMiLLS07f3T6PVxeX+atdLo0KpBAmbRkOSDfmLsTCsey2kPGS2cPQbi4MEs 0eoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734432724; x=1735037524; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kz81swbs3lCanBACkM3ZBjKb/yhPMbO2NCV2+GEWKLk=; b=g2kfKsmWYRyTpB7MYlPqeKSX8yibMX5IjUnQu+5+bK5VjNcqbavR/Y0K9l5+BEbLsL 9hskh1YBVwutJunYKsDm5BSd2H/r09gNwUs6zw59M1tdVrllAkYTOLw7Dpt7DQrncTyw 61h0GhNKMSakJ0SZho05lxI6lJtij7N2kpYkM1ZWm+v/Jub2jwr9qXpmVXqTSWO57esO JrK1fquxkvbuRzCNsNdpB6/IvvMxxz3+61kts3geCDvRuD65aZTQWU3NLCf7FqXIaWaF Byaenv8ZulyeGvUQOTFc8wWFx49iI7MKLOodooQ4Mv4G39SzFXQ0BSxQ0BL/7fofh3RA 8dow== X-Gm-Message-State: AOJu0Yy78C+1qmMUrs5oJqcunAJZNr241smz0eROrB9L7/tKtP6NWf+P GtvTCDUry2kmzd+3rIMpdseULueXD3XdWg22Zw1WHMWvHID/eqP2017SumozZ9hhPIEfb8WxXJz Dtkwvo0HWmZlLvC4C2U7yGowSPY2u2A== X-Gm-Gg: ASbGncvA5e6TWqgLTLBcuMe2RtuvKm8FfCIDbveT3aIqaszRqzSZzs5fkDjCDMwwQf3 1hYmoDQTt6RksXJR05GHAOBZUmjJMhm6jdcQzO+qCUzZRTpkdTfqkct649zBkqv5b2csTHS3J X-Google-Smtp-Source: AGHT+IEvlR1Yb0ksbQMb87h5pYdRf/29pCKArNeWLFH84FRzLWC0CyBA4yAMROMl4VBI4S+EE8LHQ16U37lGg5s5kVc= X-Received: by 2002:a17:90b:1b10:b0:2ee:e158:125b with SMTP id 98e67ed59e1d1-2f2900a6e40mr20711233a91.26.1734432724025; Tue, 17 Dec 2024 02:52:04 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: kamal deen Date: Tue, 17 Dec 2024 16:21:53 +0530 Message-ID: Subject: Re: Dead tuple ratio for table & index To: lakshmi sravya Cc: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary="00000000000067122c0629751692" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000067122c0629751692 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you Sravya. SK On Tue, Dec 17, 2024, 3:52=E2=80=AFPM lakshmi sravya wrote: > Hello SK, > > you can use the pgstattuple extension, which provides exact table and > index bloat statistics. > https://www.postgresql.org/docs/current/pgstattuple.html > > https://www.percona.com/blog/postgresql-tuple-level-statistics-with-pgsta= ttuple/ > > Regards, > Sravya. > > On Sat, Dec 14, 2024 at 3:29=E2=80=AFAM kamal deen wrote: > > > > Hi All, > > > > Kindly share the query details to identify the dead tuples ratio at > table & index level. > > > > We have noticed some of our partioned tables generating more WAL files > during vacuumb.(around 50 to 60GB > > > > (We are in the plan to remove this manual job later since auto vacuum i= s > enabled) > > > > Thanks in advance =E2=98=BA=EF=B8=8F > > > > Regards, > > SK > --00000000000067122c0629751692 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you Sravya.

SK

On Tue, Dec 17, 2024, 3:52=E2=80=AFPM l= akshmi sravya <lakshmisr= avya51999@gmail.com> wrote:
= Hello SK,

you can use the pgstattuple extension, which provides exact table and
index bloat statistics.
https://www.postgresql.org/docs/c= urrent/pgstattuple.html
https://w= ww.percona.com/blog/postgresql-tuple-level-statistics-with-pgstattuple/=

Regards,
Sravya.

On Sat, Dec 14, 2024 at 3:29=E2=80=AFAM kamal deen <kamaldeendba@gma= il.com> wrote:
>
> Hi All,
>
> Kindly share the query details=C2=A0 to identify the dead tuples ratio= at table & index level.
>
> We have noticed some of our partioned tables generating more WAL files= during vacuumb.(around 50 to 60GB
>
> (We are in the plan to remove this manual job later since auto vacuum = is enabled)
>
> Thanks in advance =E2=98=BA=EF=B8=8F
>
> Regards,
> SK
--00000000000067122c0629751692--