On Sat, August 18, 2007 13:40, Stephen Davies wrote: > select count(rdate),rdate from reading where sensor_id in > (1137,1138,1139) group by rdate order by rdate desc limit 1; > > takes a few seconds but: Interesting! However this is probably not the best list to ask, since it's about the backend and quite independent of any interface. You may have more luck on pgsql-general. Jeroen