From: | Ron <ronljohnsonjr(at)gmail(dot)com> |
---|---|
To: | pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | Re: Huge table pg_shdepend |
Date: | 2019-01-21 11:42:02 |
Message-ID: | 728e7d92-4637-884f-eefb-fea50db46b6f@gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On 1/21/19 4:18 AM, Horst Düster wrote:
> Hi
>
> I'm struggling with a huge table pg_shdepend. My database has a size of
> 640MB exclude the size of the system tables. But the real size of the db
> is more than 2GB. The reason is a huge table pg_shdepend with more than
> 32000000 records. PgAdmin3 shows a table size of
> 1885MB and an index size of 1690MB. This looks strange for me, because
> this size is a multiple amount of the db size itself. I believe, that
> there are a lot of rubbish in that table, but I'm not sure.
>
> I had run a vacuum full process, but this didn't help. Could anyone give
> me an advice how to clean the table pg_shdepend or reduce the table size?
Silly question: did you vacuum the postgres database, or your user database(s)?
Also, you should do the "vacuumdb --freeze --dbname=postgres" when nothing
else is attached to any databases, so that nothing else can be holding old
records in that table.
--
Angular momentum makes the world go 'round.
From | Date | Subject | |
---|---|---|---|
Next Message | Shreeyansh Dba | 2019-01-21 11:50:27 | Re: Huge table pg_shdepend |
Previous Message | Andrew Gierth | 2019-01-21 11:19:58 | Re: Huge table pg_shdepend |