Better solution to the IN-list issue: instead of having an arbitrary cutoff,
authorTom Lane <[email protected]>
Sun, 26 Oct 2008 02:46:36 +0000 (02:46 +0000)
committerTom Lane <[email protected]>
Sun, 26 Oct 2008 02:46:36 +0000 (02:46 +0000)
commite6484320f35726953a86067242e60660ba9102a8
treedfbd77cddd668e3c71e4fd9cea3d87b3c4641406
parentbcdd3be624b60133add214203ab56dd18cedc28e
Better solution to the IN-list issue: instead of having an arbitrary cutoff,
treat Var and non-Var IN-list items differently.  Only non-Var items are
candidates to go into an ANY(ARRAY) construct --- we put all Vars as separate
OR conditions on the grounds that that leaves more scope for optimization.
Per suggestion from Robert Haas.
src/backend/parser/parse_expr.c