Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

Next:From: Tom LaneDate: 2007-03-28 16:28:22
Subject: Re: Improving performance on system catalog
Previous:From: Daniel Cristian CruzDate: 2007-03-28 15:52:10
Subject: Re: Improving performance on system catalog

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group