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

From: rhaas(at)postgresql(dot)org (Robert Haas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Attempt to fix EXPLAIN (FORMAT YAML) quoting to behave sanely.
Date: 2010-06-09 02:39:34
Message-ID: 20100609023934.C5AAE7541D4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

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

Browse pgsql-committers by date

  From Date Subject
Next Message Takahiro Itagaki 2010-06-09 03:39:26 pgsql: Avoid "identifier will be truncated" warning in dblink when
Previous Message Takahiro Itagaki 2010-06-09 01:00:50 pgsql: Fix connection leak in dblink when dblink_connect() or