pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Daniel Cristian Cruz <danielcristian@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Improving performance on system catalog
Date: Wed, 28 Mar 2007 08:57:56 -0700
Message-ID: <460A9084.8070105@commandprompt.com> (raw)
In-Reply-To: <48d0cacb0703280559g50610f2r67f189bec4185b73@mail.gmail.com>
References: <48d0cacb0703280559g50610f2r67f189bec4185b73@mail.gmail.com>

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/




view thread (6+ messages)  latest in thread

Message-ID: <460A9084.8070105@commandprompt.com>
Permalink:  ../460A9084.8070105@commandprompt.com/
Also on:    postgresql.org/message-id/460A9084.8070105@commandprompt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jd@commandprompt.com, danielcristian@gmail.com
  Subject: Re: Improving performance on system catalog
  In-Reply-To: <460A9084.8070105@commandprompt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox