Re: Know bloat percentage after auto vacuum

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: satish v <vuyyuru(dot)satish59(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Know bloat percentage after auto vacuum
Date: 2021-11-01 04:35:14
Message-ID: b2fc8e664c475c0c08a12874ebeafaa3fa5e252e.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sat, 2021-10-30 at 21:33 +0530, satish v wrote:
> We have the table with 2 months data (approx 450GB). We deleted 17 days of data and auto vacuum
> performed on the table.new insertions are utilizing  that space,we want to perform the vacuum full
> and reclaim the space at os level but don't know how much free (unused) space available.how can we get the details.

CREATE EXTENSION pgstattuple;

SELECT tuple_percent, dead_tuple_percent, free_percent
FROM pgstattuple('table_name');

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ni Ne 2021-11-01 21:48:13 How to control which Python interpreter Postgres uses?
Previous Message satish v 2021-10-30 16:03:48 Know bloat percentage after auto vacuum