Attempt to fix EXPLAIN (FORMAT YAML) quoting to behave sanely.

Robert Haas <rhaas@postgresql.org>

Commit: d6e503a493d2a54221531654d48a62fddc8ae9a2
Author: Robert Haas <rhaas@postgresql.org>
Date: 2010-06-09T02:39:34Z
Releases: 9.0.0
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

PathChange+/−
src/backend/commands/explain.c modified +35 −9