AW: indexes and big tables

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'Robert Vojta'" <vojta(at)ipex(dot)cz>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: AW: indexes and big tables
Date: 2001-07-27 11:19:54
Message-ID: 11C1E6749A55D411A9670001FA6879633683A7@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> netacc=> EXPLAIN (SELECT SUM(counterfrom) AS from,
> SUM(counterto) AS to,
> floor((985098900 - date_part('epoch', counterstamp)) / 300)
> AS sequence
> FROM counters WHERE line='absolonll' AND date_part('epoch',
> ) counterstamp > 984978900 GROUP BY sequence, line) ...

I would guess the problem is the restriction on counterstamp, because
written like that, it probably can't use the index.

try something where you avoid the use of the date_part function e.g.:
AND counterstamp > '2001-07-26 00:00:00.0'

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message mlw 2001-07-27 11:40:38 From TODO, XML?
Previous Message Robert Vojta 2001-07-27 10:13:37 indexes and big tables