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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: \d on database with a lot of tables is slow
Дата
Msg-id 1744.1127761244@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: \d on database with a lot of tables is slow  ("Jim C. Nasby" <jnasby@pervasive.com>)
Ответы Re: \d on database with a lot of tables is slow  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: pg_config/share_dir
Следующее
От: David Fetter
Дата:
Сообщение: Re: On Logging