Assorted minor refactoring in EXPLAIN.
Tom Lane <tgl@sss.pgh.pa.us>
Assorted minor refactoring in EXPLAIN. This is believed to not change the output at all, with one known exception: "Subquery Scan foo" becomes "Subquery Scan on foo". (We can fix that if anyone complains, but it would be a wart, because the old code was clearly inconsistent.) The main intention is to remove duplicate coding and provide a cleaner base for subsequent EXPLAIN patching. Robert Haas
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/explain.c | modified | +261 −423 |
| src/backend/lib/stringinfo.c | modified | +21 −1 |
| src/backend/utils/adt/ruleutils.c | modified | +1 −12 |
| src/include/lib/stringinfo.h | modified | +7 −1 |