drnic/composite_primary_keys — pull request #118 by tomhughes (2012-07-27 13:16:01+00:00)
Title: Make cpk_in_predicate build a simple IN when possible

If there is only a single key element then build an IN predicate instead of a long list of equality comparisons joined together.

The IN is probably more efficient and certainly Postgres at least can run into stack overflow issues trying to analyse a very long list of ORs.