Re: Question about postmaster's CPU usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar 28, 2013 9:07 PM, "kelphet xiong" <kelphet@xxxxxxxxx> 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


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux