Re: [HACKERS] Invalid YAML output from EXPLAIN

From: Florian Weimer <fweimer(at)bfk(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>, pgsql-hackers(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Re: [HACKERS] Invalid YAML output from EXPLAIN
Date: 2010-06-07 16:39:45
Message-ID: 82hblere3y.fsf@mid.bfk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

* Tom Lane:

> Egad ... this is supposed to be an easily machine-generatable format?

Perhaps you could surround all strings with "" in the generator, and
escape all potentially special characters (which seems to include some
whitespace even in quoted strings, unfortunately)?

It has been claimed before that YAML is a superset of JSON, so why
can't the YAML folks use the existing JSON output instead?

--
Florian Weimer <fweimer(at)bfk(dot)de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Greg Smith 2010-06-07 17:34:38 Re: [HACKERS] Invalid YAML output from EXPLAIN
Previous Message Piergiorgio Buongiovanni 2010-06-07 16:36:49 BUG #5492: Query performs slowly and sequence corrupted

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2010-06-07 16:52:31 Re: psql: ON_ERROR_STOP command-line flag for scripts
Previous Message Mike Toews 2010-06-07 16:32:41 psql: ON_ERROR_STOP command-line flag for scripts