On Thu, Jun 26, 2014 at 12:48 PM, AJ Weber <aweber@xxxxxxxxxxx> wrote: > FWIW: I tested removing the quotes around each value, and it did not change > the plan (I am a little surprised too, but I guess PG is "smarter than > that"). > > Thanks for the idea. Ok, second round. Try changing node_id in (...) into node.id in (...)