]> granicus.if.org Git - postgresql/commit
Better solution to the IN-list issue: instead of having an arbitrary cutoff,
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Oct 2008 02:46:36 +0000 (02:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Oct 2008 02:46:36 +0000 (02:46 +0000)
commit0ee91fdfee4e80dae427ff9a1ecf8917cf3eb65a
treebf84c10534f53a264d1285638b1d3d27d95b5d2e
parent038e45d2cfd4972350024163c36b05fb6cfd474a
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