Re: Improving performance on system catalog

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Daniel Cristian Cruz <danielcristian(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Improving performance on system catalog
Date: 2007-03-28 15:57:56
Message-ID: 460A9084.8070105@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2007-03-28 16:28:22 Re: Improving performance on system catalog
Previous Message Daniel Cristian Cruz 2007-03-28 15:52:10 Re: Improving performance on system catalog