Kari,
> users: "users_upper_nick" unique, btree (upper((nick)::text))> image: "image_uid_status" btree (uid, status)
Odd ... when did you last run ANALYZE on "users"?
-- -Josh Berkus Aglio Database Solutions San Francisco