As Richard already pointed out the query issues, I'll point out the low-hanging fruit. At 6:17am -0400 on Fri, 19 Sep 2008, Andrea Moretto wrote: > I am currently running Postgres 8.3.1. ^^^^^ The current minor release is 8.3.3 and 8.3.4 is expected Monday. Upgrade. You gain absolutely nothing staying at an out-of-date minor revision. Kevin