Actually ... it's pretty silly that parse_oper.c doesn't set up the
Tom Lane <tgl@sss.pgh.pa.us>
Actually ... it's pretty silly that parse_oper.c doesn't set up the opfuncid of an OpExpr initially, considering that it has the information at hand already. We'll still treat opfuncid as a cache rather than a guaranteed-valid value, but this change saves one more syscache lookup in the normal code path.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_oper.c | modified | +3 −3 |
| src/include/nodes/primnodes.h | modified | +2 −2 |