Re: Huge table pg_shdepend - Mailing list pgsql-admin

From Ron
Subject Re: Huge table pg_shdepend
Date
Msg-id 728e7d92-4637-884f-eefb-fea50db46b6f@gmail.com
Whole thread Raw
In response to Huge table pg_shdepend  (Horst Düster <horst.duester@sourcepole.ch>)
List 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.


pgsql-admin by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: Huge table pg_shdepend
Next
From: Shreeyansh Dba
Date:
Subject: Re: Huge table pg_shdepend