From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Huge table pg_shdepend
Date: Mon, 21 Jan 2019 05:42:02 -0600
Message-ID: <728e7d92-4637-884f-eefb-fea50db46b6f@gmail.com> (raw)
In-Reply-To: <7ecdbaa3-07a6-1ec1-d991-06440c05b4cb@sourcepole.ch>
References: <7ecdbaa3-07a6-1ec1-d991-06440c05b4cb@sourcepole.ch>
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.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Huge table pg_shdepend
In-Reply-To: <728e7d92-4637-884f-eefb-fea50db46b6f@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