pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 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 10:17:30 +0100
Message-ID: <cf40507d-5386-7dc1-cb1a-9a1a4ffa9f83@dalibo.com> (raw)
In-Reply-To: <CAN6gwKwab02c3dhs10JuRb+7J8FnZp1rAMVW10dQjW3=FLCDYQ@mail.gmail.com>
References: <CAN6gwKyh+CvRni0Kcn7i0iEgqqkWC=iFAhgQUL+gx-=qxYCpOw@mail.gmail.com>
	<CAN6gwKyROyDzhxsXkgpOGi5AXoBodtVty+Okt6qrUnZLPXp6Sg@mail.gmail.com>
	<CAN6gwKwab02c3dhs10JuRb+7J8FnZp1rAMVW10dQjW3=FLCDYQ@mail.gmail.com>

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

Attachments:

  signature.asc (application/pgp-signature, 487B) download

view thread (7+ messages)  latest in thread

Message-ID: <cf40507d-5386-7dc1-cb1a-9a1a4ffa9f83@dalibo.com>
Permalink:  ../cf40507d-5386-7dc1-cb1a-9a1a4ffa9f83@dalibo.com/
Also on:    postgresql.org/message-id/cf40507d-5386-7dc1-cb1a-9a1a4ffa9f83@dalibo.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: stefan.fercot@dalibo.com, shavikas@gmail.com
  Subject: Re: Table and Index bloating
  In-Reply-To: <cf40507d-5386-7dc1-cb1a-9a1a4ffa9f83@dalibo.com>
  References: <CAN6gwKyh+CvRni0Kcn7i0iEgqqkWC=iFAhgQUL+gx-=qxYCpOw@mail.gmail.com> <CAN6gwKyROyDzhxsXkgpOGi5AXoBodtVty+Okt6qrUnZLPXp6Sg@mail.gmail.com> <CAN6gwKwab02c3dhs10JuRb+7J8FnZp1rAMVW10dQjW3=FLCDYQ@mail.gmail.com> <cf40507d-5386-7dc1-cb1a-9a1a4ffa9f83@dalibo.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