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

EXPLAIN ANALYZE on 8.2

From: Evgeny Gridasov <eugrid(at)fpm(dot)kubsu(dot)ru>
To: pgsql-performance(at)postgresql(dot)org
Subject: EXPLAIN ANALYZE on 8.2
Date: 2006-12-14 13:32:30
Message-ID: 20061214163230.d46f0138.eugrid@fpm.kubsu.ru (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-performance
Hi, everybody!

Running the same query on pg 8.2 through EXPLAIN ANALYZE takes 4x-10x time as running it without it.
Is it ok?


Example:

testing=> select count(*) from auth_user;
  count  
---------
 2575675
(1 row)

Time: 1450,829 ms
testing=> explain analyze select count(*) from auth_user;
                                                         QUERY PLAN                                                         
----------------------------------------------------------------------------------------------------------------------------
 Aggregate  (cost=89814.87..89814.88 rows=1 width=0) (actual time=18460.436..18460.439 rows=1 loops=1)
   ->  Seq Scan on auth_user  (cost=0.00..83373.89 rows=2576389 width=0) (actual time=0.424..9871.520 rows=2575675 loops=1)
 Total runtime: 18460.535 ms
(3 rows)

Time: 18461,194 ms

Responses

pgsql-performance by date

Next:From: Arnaud LesauvageDate: 2006-12-14 14:01:34
Subject: Re: Slow update with simple query
Previous:From: Gregory S. WilliamsonDate: 2006-12-14 06:49:05
Subject: Re: New to PostgreSQL, performance considerations

pgsql-hackers by date

Next:From: Simon RiggsDate: 2006-12-14 14:41:59
Subject: Re: recovery.conf parsing problems
Previous:From: Martijn van OosterhoutDate: 2006-12-14 13:09:49
Subject: Re: Operator class group proposal

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