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 1tNUjl-0007MB-RX for pgsql-admin@arkaria.postgresql.org; Tue, 17 Dec 2024 10:23:34 +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 1tNUin-000U8g-5U for pgsql-admin@arkaria.postgresql.org; Tue, 17 Dec 2024 10:22:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNUim-000U8O-QI for pgsql-admin@lists.postgresql.org; Tue, 17 Dec 2024 10:22:32 +0000 Received: from mail-vs1-xe36.google.com ([2607:f8b0:4864:20::e36]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tNUij-0000cx-Qp for pgsql-admin@postgresql.org; Tue, 17 Dec 2024 10:22:31 +0000 Received: by mail-vs1-xe36.google.com with SMTP id ada2fe7eead31-4b10dd44c8bso1043168137.3 for ; Tue, 17 Dec 2024 02:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734430949; x=1735035749; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4y5zWByiPur4t7ywLRLFFtrfCROrvdYMhY2v6CpBi/o=; b=lfbTXWDiQp3n3OcPzRZ28OuUR5BHhObOeMcnsErO/9XjIb6o1vpQMd2q9ar7vkbrSU ZtgC3Ea6yIaoSd8IOAzj05v1e8W8dOHDh8Mt48YV3Q60Yo7kG/51TQo1Nx1jYckF2SIK sfiIDhoNaxv8lCvmxAoeF8bOaZEv3K5E7jtkxrZx2DDG6NNb03XLIrtMDOY48t/tUhKW HDtqdh3nvHoZIlOZjMomG3Y4CHUp85/uwHtSx1MJ91HR52PwCLo0YaMAWbel6nZ05/OT uMnVkOZdE8nJeGLo4o0HKqXuP/D1owH+IHeV4ahBp7zXPxzLOPxTlH2EFGPT7aOq3mIv FgrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734430949; x=1735035749; h=content-transfer-encoding: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=4y5zWByiPur4t7ywLRLFFtrfCROrvdYMhY2v6CpBi/o=; b=jgemk1IjlN/PwRONGmcOoAIQEy8d7QPS5u89aNCYhkDN+/Z/kaHeoGHaHt+ATffKdt U1+J5VlL/HgQWEfU4uBEMdbTFdaeW6KyJBJGrsPleqxgjlx2BSprZ9BkZXl6Dse7kAG4 5qG1ETpLKuLi5W4K+MmxaYS3uL8EaIKkUopnLxSQg45BEgiP5IADBnaIaYN+rkhrTcYY bVLsAo+jx6CUesjal3xKoCzmTklulZ5VRn84Wy8Ii7gNvltJ0kv2cDf/rEpkB5Cacbt3 gaAEeWkhT907bcrHNSzG4LGhPaa70VlObn0If+dOhvev3mz6fESE7UQ02pm/LeyVU3L4 CX9Q== X-Gm-Message-State: AOJu0YxMN00b6tBwj5VKTX+EQcuh5P9wsCv3SLNEnzep1wdOlZKOH8oe LSFBqhnTLrxqZWZxrAdv2f7lLC7OD+pmIwbBT9goqGPJqkyhFwWbncacdfzrvezQDelJJR88ikr 2FOTKMliu/BTtsP6fBBEi2QUgcEw= X-Gm-Gg: ASbGncv9zLp066TyJ+cUCLU8WiwDA0IYI3xZZzaY0pKYvZPmScUmBsVy/owCH5nwTdc NqVXEF7ZE5wFMoNjxxJmuqXV7fby9z5tPMmpxhMnhGKppWySLgjdXKHi15M1XCocBBrC4Iw== X-Google-Smtp-Source: AGHT+IEKwJn9TCcIg6Y0lz/AwUGo2PrU2qE8UwtbqBflRK3h7ztbFjLvQd1+ZsChfZf/aGBDSBwx1eZLL3unk52/ljg= X-Received: by 2002:a05:6102:4b13:b0:4b2:48cc:5c5a with SMTP id ada2fe7eead31-4b25dccbf77mr15925966137.15.1734430948990; Tue, 17 Dec 2024 02:22:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: lakshmi sravya Date: Tue, 17 Dec 2024 15:52:17 +0530 Message-ID: Subject: Re: Dead tuple ratio for table & index To: kamal deen Cc: pgsql-admin@postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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-pgstatt= uple/ 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 tabl= e & index level. > > We have noticed some of our partioned tables generating more WAL files du= ring 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