| From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
|---|---|
| To: | "Heiko L(dot)" <heikol(at)fh-lausitz(dot)de> |
| Cc: | pgsql-performance(at)postgresql(dot)org |
| Subject: | Re: performance sol10 zone (fup) |
| Date: | 2010-08-12 03:16:54 |
| Message-ID: | AANLkTikWPuctJOyqCpcrttsSUoqefC5NHHPEZH6qXLGK@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
On Wed, Aug 4, 2010 at 3:16 AM, Heiko L. <heikol(at)fh-lausitz(dot)de> wrote:
> $ echo "EXPLAIN ANALYSE $sql2" | $cmd 2>&1
> Aggregate (cost=5236.53..5236.54 rows=1 width=0) (actual time=2018.985..2018.9
> 86 rows=1 loops=1)
> -> Seq Scan on blacklist (cost=0.00..4855.06 rows=152588 width=0) (actual t
> ime=0.329..1883.275 rows=152603 loops=1)
> Filter: (create_time < ((((timenow())::integer - 3000))::abstime)::time
> stamp with time zone)
> Total runtime: 2019.371 ms
Maybe you need an index on create_time.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Marlowe | 2010-08-12 04:12:08 | Re: performance sol10 zone (fup) |
| Previous Message | Robert Haas | 2010-08-12 02:39:40 | Re: Questions on query planner, join types, and work_mem |