Re: \d on database with a lot of tables is slow

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Hannu Krosing <hannu(at)skype(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: \d on database with a lot of tables is slow
Date: 2005-09-26 18:05:44
Message-ID: 20050926180544.GM30974@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Sep 25, 2005 at 10:10:22AM +0300, Hannu Krosing wrote:
> On L, 2005-09-24 at 18:59 -0500, Jim C. Nasby wrote:
> > I have a client with a database that contains 4000 relations according
> > to vacuum verbose, and \d in psql is painfully slow. In particular...
> >
> > -> Seq Scan on pg_class c (cost=0.00..2343.09 rows=6124 width=73) (actual time=0.325..22100.840 rows=16856 loops=1)
> > Filter: (((relkind = 'r'::"char") OR (relkind = 'v'::"char") OR (relkind = 'S'::"char") OR (relkind = ''::"char")) AND pg_table_is_visible(oid))
> >
> > That's off my laptop, but they're seeing similar issues on an 8-way
> > Opteron as well...
>
> I expext the issue on 8-way opteron to be more of a high load than slow
> scan. It seems that sometimes a database with lots of activity slows
> down considerably. I suspect some locking issues, but I'm not sure this
> is the case.

No temp tables in use. The issue didn't appear to be load-dependant,
either.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2005-09-26 18:08:57 Re: Vacuum questions...
Previous Message Jim C. Nasby 2005-09-26 18:02:49 Re: pg_autovacuum startup from /etc/rc fails after system crash