pgsql: Quote all string values in EXPLAIN (FORMAT YAML) output. - Mailing list pgsql-committers

From rhaas@postgresql.org (Robert Haas)
Subject pgsql: Quote all string values in EXPLAIN (FORMAT YAML) output.
Date
Msg-id 20100610012630.C628D7541D4@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
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)

pgsql-committers by date:

Previous
From: rhaas@postgresql.org (Robert Haas)
Date:
Subject: pgsql: Remove stray word from comment.
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix quite-bogus handling of arrays in plpython datum-to-PyObject