Re: \d on database with a lot of tables is slow - Mailing list pgsql-hackers

From Tom Lane
Subject Re: \d on database with a lot of tables is slow
Date
Msg-id 1744.1127761244@sss.pgh.pa.us
Whole thread Raw
In response to Re: \d on database with a lot of tables is slow  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: \d on database with a lot of tables is slow
List pgsql-hackers
"Jim C. Nasby" <jnasby@pervasive.com> writes:
>>> I have a client with a database that contains 4000 relations according
>>> to vacuum verbose, and \d in psql is painfully slow. In particular...

It's presumably mostly in the pg_table_is_visible() calls.  Not sure if
we can do much to speed those up, but: how many schemas in your search
path?  What's the distribution of pg_class entries among the schemas?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: pg_config/share_dir
Next
From: David Fetter
Date:
Subject: Re: On Logging