pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: stevenchang1213 <stevenchang1213@gmail.com>
To: Stefan Fercot <stefan.fercot@dalibo.com>
To: Vikas Sharma <shavikas@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Table and Index bloating
Date: Mon, 27 Nov 2017 23:52:55 +0800
Message-ID: <5a1c34db.cc43620a.975ef.5e63@mx.google.com> (raw)

hello,
https://www.postgresql.org/docs/9.3/static/pgstattuple.html
some enhancements onward
you can try create index concurrent to maintain your index to achieve the goal of reindex. 
Steven 
-------- 原始訊息 --------自: Stefan Fercot <stefan.fercot@dalibo.com> 日期: 2017/11/27  17:17  (GMT+08:00) 至: Vikas Sharma <shavikas@gmail.com> 副本: pgsql-general@postgresql.org 主旨: Re: Table and Index bloating 
Hi,

You can track that with some monitoring tools like check_pgactivity. The
queries can be found here :
https://github.com/ioguix/pgsql-bloat-estimation.

Tables :
https://github.com/ioguix/pgsql-bloat-estimation/blob/master/table/table_bloat.sql
Indexes :
https://github.com/ioguix/pgsql-bloat-estimation/blob/master/btree/btree_bloat.sql

Backups should also be part of your maintenance plan.
Vacuum/Analyse/Reindex is already a good basis.


Kind regards


On 11/27/2017 10:10 AM, Vikas Sharma wrote:
> Hi All,
>
> Could someone please provide the query/queries  to find table and
> Index bloating in PgSql 9.3 onwards? 
> and are there any other maintenance tasks inPgSql except vacuum & analyse.
>
> Regards
> Vikas

-- 
Stefan FERCOT
http://dalibo.com - http://dalibo.org




view thread (7+ messages)  latest in thread

Message-ID: <5a1c34db.cc43620a.975ef.5e63@mx.google.com>
Permalink:  ../5a1c34db.cc43620a.975ef.5e63@mx.google.com/
Also on:    postgresql.org/message-id/5a1c34db.cc43620a.975ef.5e63@mx.google.com

 · 

reply

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: stevenchang1213@gmail.com, stefan.fercot@dalibo.com, shavikas@gmail.com
  Subject: Re: Table and Index bloating
  In-Reply-To: <5a1c34db.cc43620a.975ef.5e63@mx.google.com>
  References: <5a1c34db.cc43620a.975ef.5e63@mx.google.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