pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedTable and Index bloating
7+ messages / 4 participants
[nested] [flat]
* Table and Index bloating
@ 2017-11-27 09:10 Vikas Sharma <shavikas@gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Vikas Sharma @ 2017-11-27 09:10 UTC (permalink / raw)
To: pgsql-general
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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Table and Index bloating
@ 2017-11-27 09:17 Stefan Fercot <stefan.fercot@dalibo.com>
parent: Vikas Sharma <shavikas@gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Fercot @ 2017-11-27 09:17 UTC (permalink / raw)
To: Vikas Sharma <shavikas@gmail.com>; +Cc: pgsql-general
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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Table and Index bloating
@ 2017-11-27 14:58 Carlos Martinez <camarti@gmail.com>
parent: Stefan Fercot <stefan.fercot@dalibo.com>
0 siblings, 1 reply; 7+ messages in thread
From: Carlos Martinez @ 2017-11-27 14:58 UTC (permalink / raw)
To: pgsql-general
Hi.
You can consider use pg_repack to remove bloat
(http://reorg.github.io/pg_repack/)
Best regards.
Carlos Martinez
On Mon, Nov 27, 2017 at 4:17 AM, Stefan Fercot <stefan.fercot@dalibo.com> wrote:
> 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
>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Table and Index bloating
@ 2017-11-27 15:08 Vikas Sharma <shavikas@gmail.com>
parent: Carlos Martinez <camarti@gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Vikas Sharma @ 2017-11-27 15:08 UTC (permalink / raw)
To: Carlos Martinez <camarti@gmail.com>; +Cc: pgsql-general
Thank you Stefan for the queries.
Thanks you Carlos for pg_repack suggestion, Can we use pg_repack with
standard community edition of postgresql? and can it be used on the
databases with streaming replication?
Regards
Vikas Sharma
On 27 November 2017 at 14:58, Carlos Martinez <camarti@gmail.com> wrote:
> Hi.
>
> You can consider use pg_repack to remove bloat
> (http://reorg.github.io/pg_repack/)
>
> Best regards.
>
> Carlos Martinez
>
>
> On Mon, Nov 27, 2017 at 4:17 AM, Stefan Fercot <stefan.fercot@dalibo.com>
> wrote:
> > 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
> >
> >
>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Table and Index bloating
@ 2017-11-27 15:13 Carlos Martinez <camarti@gmail.com>
parent: Vikas Sharma <shavikas@gmail.com>
0 siblings, 0 replies; 7+ messages in thread
From: Carlos Martinez @ 2017-11-27 15:13 UTC (permalink / raw)
To: pgsql-general
Hi.
Can we use pg_repack with standard community edition of postgresql? Yes.
and can it be used on the databases with streaming replication? Yes.
Best regards.
Carlos Martinez
On Mon, Nov 27, 2017 at 10:08 AM, Vikas Sharma <shavikas@gmail.com> wrote:
> Thank you Stefan for the queries.
>
> Thanks you Carlos for pg_repack suggestion, Can we use pg_repack with
> standard community edition of postgresql? and can it be used on the
> databases with streaming replication?
>
> Regards
> Vikas Sharma
>
> On 27 November 2017 at 14:58, Carlos Martinez <camarti@gmail.com> wrote:
>>
>> Hi.
>>
>> You can consider use pg_repack to remove bloat
>> (http://reorg.github.io/pg_repack/)
>>
>> Best regards.
>>
>> Carlos Martinez
>>
>>
>> On Mon, Nov 27, 2017 at 4:17 AM, Stefan Fercot <stefan.fercot@dalibo.com>
>> wrote:
>> > 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
>> >
>> >
>>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Table and Index bloating
@ 2017-11-27 15:52 stevenchang1213 <stevenchang1213@gmail.com>
0 siblings, 0 replies; 7+ messages in thread
From: stevenchang1213 @ 2017-11-27 15:52 UTC (permalink / raw)
To: Stefan Fercot <stefan.fercot@dalibo.com>; Vikas Sharma <shavikas@gmail.com>; +Cc: pgsql-general
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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Table and Index bloating
@ 2017-11-28 01:29 stevenchang1213 <stevenchang1213@gmail.com>
0 siblings, 0 replies; 7+ messages in thread
From: stevenchang1213 @ 2017-11-28 01:29 UTC (permalink / raw)
To: Carlos Martinez <camarti@gmail.com>; pgsql-general
After reading the web pages, index part should be succeeded, but tables may not fit if they got foreign key relations.
steven
-------- 原始訊息 --------自: Carlos Martinez <camarti@gmail.com> 日期: 2017/11/27 23:13 (GMT+08:00) 至: pgsql-general@postgresql.org 主旨: Re: Table and Index bloating
Hi.
Can we use pg_repack with standard community edition of postgresql? Yes.
and can it be used on the databases with streaming replication? Yes.
Best regards.
Carlos Martinez
On Mon, Nov 27, 2017 at 10:08 AM, Vikas Sharma <shavikas@gmail.com> wrote:
> Thank you Stefan for the queries.
>
> Thanks you Carlos for pg_repack suggestion, Can we use pg_repack with
> standard community edition of postgresql? and can it be used on the
> databases with streaming replication?
>
> Regards
> Vikas Sharma
>
> On 27 November 2017 at 14:58, Carlos Martinez <camarti@gmail.com> wrote:
>>
>> Hi.
>>
>> You can consider use pg_repack to remove bloat
>> (http://reorg.github.io/pg_repack/)
>>
>> Best regards.
>>
>> Carlos Martinez
>>
>>
>> On Mon, Nov 27, 2017 at 4:17 AM, Stefan Fercot <stefan.fercot@dalibo.com>
>> wrote:
>> > 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
>> >
>> >
>>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2017-11-28 01:29 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-27 09:10 Table and Index bloating Vikas Sharma <shavikas@gmail.com>
2017-11-27 09:17 ` Stefan Fercot <stefan.fercot@dalibo.com>
2017-11-27 14:58 ` Carlos Martinez <camarti@gmail.com>
2017-11-27 15:08 ` Vikas Sharma <shavikas@gmail.com>
2017-11-27 15:13 ` Carlos Martinez <camarti@gmail.com>
2017-11-27 15:52 Re: Table and Index bloating stevenchang1213 <stevenchang1213@gmail.com>
2017-11-28 01:29 Re: Table and Index bloating stevenchang1213 <stevenchang1213@gmail.com>
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