Re: Huge table pg_shdepend - Mailing list pgsql-admin

From Andrew Gierth
Subject Re: Huge table pg_shdepend
Date
Msg-id 87o98a468n.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Huge table pg_shdepend  (Horst Düster <horst.duester@sourcepole.ch>)
Responses Re: Huge table pg_shdepend  (Horst Düster <horst.duester@sourcepole.ch>)
List pgsql-admin
>>>>> "Horst" == Horst Düster <horst.duester@sourcepole.ch> writes:

 Horst> Hi

 Horst> I'm struggling with a huge table pg_shdepend. My database has a
 Horst> size of 640MB exclude the size of the system tables. But the
 Horst> real size of the db is more than 2GB. The reason is a huge table
 Horst> pg_shdepend with more than 32000000 records.

pg_shdepend has a row for every object and every ACL entry that records
which role (other than the initial db superuser) owns the object or is
referenced from the ACL entry.

Do you have an unusually large number of tables (or other database
objects)?

Note that there's a single pg_shdepend table shared between all
databases in the cluster; it's not part of any single database but
rather is a "global" table. So what matters is the total number of
objects over all databases, not the size of any single db.

--
Andrew (irc:RhodiumToad)


pgsql-admin by date:

Previous
From: "AB_ba#"
Date:
Subject: IO scheduler recommendation
Next
From: Ron
Date:
Subject: Re: Huge table pg_shdepend