Colton A Smith <[EMAIL PROTECTED]> wrote ..
------------------------------------------------------------------------------------------------
> Seq Scan on sensor (cost=0.00..1.25 rows=1 width=6) (actual
> time=0.055..0.068 rows=1 loops=1)
> Filter: (sensor_id = 12)
> Total runtime: 801641.333 ms
> (3 rows)
Do you have some foreign keys pointing in the other direction? In other words,
is there another table such that a delete on sensors causing a delete (or a
check of some key) in another table? EXPLAIN doesn't show these. And that might
be a big table missing an index.
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match