Re: Improving performance on system catalog

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Improving performance on system catalog
Дата
Msg-id 460A9084.8070105@commandprompt.com
обсуждение исходный текст
Ответ на Improving performance on system catalog  ("Daniel Cristian Cruz" <danielcristian@gmail.com>)
Список pgsql-performance
Daniel Cristian Cruz wrote:
> Hi all.
>
> I would like to speed up this query:
>
> EXPLAIN ANALYZE
> SELECT
> relid,schemaname,relname,seq_scan,seq_tup_read,idx_scan,idx_tup_fetch,n_tup_ins,n_tup_upd,n_tup_del
>
> FROM pg_stat_user_tables;
>


Although optimizing for 13ms is a little silly imo, you could probably
gain from calling the specific query underneath instead of calling the
view pg_stat_user_tables.

Joshua D. Drake


--

       === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
              http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


В списке pgsql-performance по дате отправления:

Предыдущее
От: "Daniel Cristian Cruz"
Дата:
Сообщение: Re: Improving performance on system catalog
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Improving performance on system catalog