Re: Question about postmaster's CPU usage - Mailing list pgsql-performance

From Ants Aasma
Subject Re: Question about postmaster's CPU usage
Date
Msg-id CA+CSw_t-qvn3fj_6QYE+TK3150pfLdDqO87wnP8fZPfVNm8C9g@mail.gmail.com
Whole thread Raw
In response to Question about postmaster's CPU usage  (kelphet xiong <kelphet@gmail.com>)
List pgsql-performance

On Mar 28, 2013 9:07 PM, "kelphet xiong" <kelphet@gmail.com> wrote:
> explain analyze select * from inventory;
>                                                         QUERY PLAN
>
> --------------------------------------------------------------------------------------------------------------
> ------------
>  Seq Scan on inventory  (cost=0.00..180937.00 rows=11745000 width=16) (actual time=0.005..1030.403 rows=117450
> 00 loops=1)
>  Total runtime: 1750.889 ms
> (2 rows)

A large fraction of that time, if not most is due to timing overhead. You can try the same query without timing by using explain (analyze on, timing off) select * from inventory;

Regards,
Ants Aasma

pgsql-performance by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Postgresql performance degrading... how to diagnose the root cause
Next
From: Kelphet Xiong
Date:
Subject: Re: Question about postmaster's CPU usage