Attempt to fix EXPLAIN (FORMAT YAML) quoting to behave sanely.
Robert Haas <rhaas@postgresql.org>
Attempt to fix EXPLAIN (FORMAT YAML) quoting to behave sanely.
The previous code failed to quote in many cases where quoting was necessary -
YAML has loads of special characters, including -:[]{},"'|*& - so quote much
more aggressively, and only refrain from quoting things where it seems fairly
clear that it isn't necessary.
Per report from Dean Rasheed.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/explain.c | modified | +35 −9 |