From: Artem Tomyuk <admin@leboutique.com>
To: Keith <keith@keithf4.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: how to shrink pg_attribute table in some database
Date: Mon, 26 Mar 2018 17:15:14 +0300
Message-ID: <CANYYVqLSEdHVzXiUUHp+mPM+X5tbbP_oOfHh5-RJGoTkReGsmA@mail.gmail.com> (raw)
In-Reply-To: <CAHw75vuFvy_Tn9ZT0zANugeJOLhrfcmxv4r+XeJV0NszVNmn5Q@mail.gmail.com>
References: <CANYYVqKwgR8TK6ar54vbXLc01KH-_ppM=qh6GLQ6edmmexX-EQ@mail.gmail.com>
<CAHw75vuFvy_Tn9ZT0zANugeJOLhrfcmxv4r+XeJV0NszVNmn5Q@mail.gmail.com>
For now pg_attribute bloated to 300GB in size, and we have only 260GB's of
free space on disk.
In normal situation pg_attribute takes 50mb in size for our DB...
Can we assume that if we will run vacuum full on pg_attribute it will take
additional 50MB on disk?
Thanks
2018-03-26 16:41 GMT+03:00 Keith <keith@keithf4.com>:
>
>
> On Mon, Mar 26, 2018 at 9:35 AM, Artem Tomyuk <admin@leboutique.com>
> wrote:
>
>> Hi, Gurus!!!!
>>
>> Maybe someone knows what is the best way to shrink pg_attribute in size?
>> Maybe backup and restore of this table will sanitize "dead" records in it?
>> Or only full vacuum can help in this situation?
>>
>> Thanks!
>>
>
> VACUUM FULL would be the way to go if bloat is the issue you're trying to
> fix. Trying to backup up & restore a single system catalog would not be
> recommended.
>
> Keith
>
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-admin@postgresql.org
Cc: admin@leboutique.com, keith@keithf4.com
Subject: Re: how to shrink pg_attribute table in some database
In-Reply-To: <CANYYVqLSEdHVzXiUUHp+mPM+X5tbbP_oOfHh5-RJGoTkReGsmA@mail.gmail.com>
References: <CANYYVqKwgR8TK6ar54vbXLc01KH-_ppM=qh6GLQ6edmmexX-EQ@mail.gmail.com> <CAHw75vuFvy_Tn9ZT0zANugeJOLhrfcmxv4r+XeJV0NszVNmn5Q@mail.gmail.com> <CANYYVqLSEdHVzXiUUHp+mPM+X5tbbP_oOfHh5-RJGoTkReGsmA@mail.gmail.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