Fix oversight in optimization that avoids an unnecessary projection step
Tom Lane <tgl@sss.pgh.pa.us>
Fix oversight in optimization that avoids an unnecessary projection step when scanning a table that we need all the columns from. In case of SELECT INTO, we have to check that the hasoids flag matches the desired output type, too. Per report from Mike Mascari.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execMain.c | modified | +62 −3 |
| src/backend/executor/execScan.c | modified | +15 −4 |
| src/backend/executor/execUtils.c | modified | +10 −35 |
| src/backend/executor/nodeAppend.c | modified | +2 −2 |
| src/include/executor/executor.h | modified | +2 −1 |
| src/include/nodes/execnodes.h | modified | +3 −4 |