From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ron Johnson <ron.l.johnson@cox.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Reindex doesn't eliminate bloat
Date: Mon, 12 Mar 2018 15:55:39 -0700
Message-ID: <d70fa807-a785-beb5-ea8b-127418cb420c@aklaver.com> (raw)
In-Reply-To: <8ba3c6c1-709b-d853-97f0-9ef458528b3d@cox.net>
References: <8ba3c6c1-709b-d853-97f0-9ef458528b3d@cox.net>
On 03/12/2018 03:05 PM, Ron Johnson wrote:
> v8.4.12
>
> According to this (https://pastebin.com/TJB32n5M) query, which I thought
> I got from https://wiki.postgresql.org/wiki/Index_Maintenance, a list of
> indexes and their bloat is generated.
>
> After reindexing a table with a large amount of reported bloat (column
> bloat_pct says 29%), re-running the query shows no change in the amount
First I am not seeing a column bloat_pct in the query you linked to, so
are you sure that is the actual query you used?
> of bloat. This is a historical table, and VACUUM VERBOSE shows that
> there's nothing to free up.
>
> Is this something that I must live with, or am I misinterpreting the query?
Honestly I have not worked my way in depth through the query you show,
though I did notice it uses pg_stats. What happens if run ANALYZE
(https://www.postgresql.org/docs/8.4/static/sql-analyze.html) to update
the stats?
>
> Thanks,
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, ron.l.johnson@cox.net
Subject: Re: Reindex doesn't eliminate bloat
In-Reply-To: <d70fa807-a785-beb5-ea8b-127418cb420c@aklaver.com>
References: <8ba3c6c1-709b-d853-97f0-9ef458528b3d@cox.net> <d70fa807-a785-beb5-ea8b-127418cb420c@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox