Could ANALYZE estimate bloat?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Could ANALYZE estimate bloat?
Date: 2013-09-20 18:59:00
Message-ID: 523C9AF4.8090402@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hackers,

I've been tinkering with a number of table bloat checks, and it occurred
to me that the problm is that these are all approximations based on
overall gross statistics, and as such highly inaccurate.

It seems like would could have ANALYZE, while sampling from the table,
also check the amount of dead space per page and use that as an estimate
of the % of dead space overall. We'd still need something else for
indexes, but this seems like it would be a good start.

No?

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-09-20 19:18:44 Re: FW: REVIEW: Allow formatting in log_line_prefix
Previous Message Robert Haas 2013-09-20 18:58:56 Re: [RFC] Extend namespace of valid guc names