Thread: pgsql: Quote all string values in EXPLAIN (FORMAT YAML) output.

pgsql: Quote all string values in EXPLAIN (FORMAT YAML) output.

From
rhaas@postgresql.org (Robert Haas)
Date:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/commands:
        explain.c (r1.205 -> r1.206)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/explain.c?r1=1.205&r2=1.206)