Use ANY VALUES instead of ID IN() to speed up Postgres

Another optimization for large ID IN queries.. plz review @ericnewcomer 
Shouldn't this be r.pk?