Re: [BUGS] Invalid YAML output from EXPLAIN - Mailing list pgsql-hackers

From Florian Weimer
Subject Re: [BUGS] Invalid YAML output from EXPLAIN
Date
Msg-id 82hblere3y.fsf@mid.bfk.de
Whole thread Raw
In response to Re: [BUGS] Invalid YAML output from EXPLAIN  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] Invalid YAML output from EXPLAIN  (Greg Smith <greg@2ndquadrant.com>)
List 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@bfk.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


pgsql-hackers by date:

Previous
From: Mike Toews
Date:
Subject: psql: ON_ERROR_STOP command-line flag for scripts
Next
From: Stephen Frost
Date:
Subject: Re: psql: ON_ERROR_STOP command-line flag for scripts