Tweak grammar to use FastAppend rather than lappend when constructing
Tom Lane <tgl@sss.pgh.pa.us>
Tweak grammar to use FastAppend rather than lappend when constructing expr_lists. This appears to be the only remaining O(N^2) bottleneck in processing many-way 'x IN (a,b,c,...)' conditions.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/gram.y | modified | +14 −3 |
| src/include/nodes/pg_list.h | modified | +7 −1 |