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

Поиск
Список
Период
Сортировка
От rhaas@postgresql.org (Robert Haas)
Тема pgsql: Quote all string values in EXPLAIN (FORMAT YAML) output.
Дата
Msg-id 20100610012630.C628D7541D4@cvs.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: rhaas@postgresql.org (Robert Haas)
Дата:
Сообщение: pgsql: Remove stray word from comment.
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix quite-bogus handling of arrays in plpython datum-to-PyObject