OSDN Git Service

Quote all string values in EXPLAIN (FORMAT YAML) output.
authorRobert Haas <rhaas@postgresql.org>
Thu, 10 Jun 2010 01:26:30 +0000 (01:26 +0000)
committerRobert Haas <rhaas@postgresql.org>
Thu, 10 Jun 2010 01:26:30 +0000 (01:26 +0000)
commit932de8916fa2ff84c30e396b3e91442c4629e964
treef91cb4213fb8156f890227e60d11d06820186516
parentf383083305dbc387bef240fe345f22d9133ecfc3
Quote all string values in EXPLAIN (FORMAT YAML) output.

While my previous attempt seems to always produce valid YAML, it
doesn't always produce YAML that means what it appears to mean,
because of tokens like "0xa" and "true", which without quotes will
be interpreted as integer or Boolean literals.  So, instead, just
quote everything that's not known to be a number, as we do for
JSON.

Dean Rasheed, with some changes to the comments by me.
src/backend/commands/explain.c