Re: Invalid YAML output from EXPLAIN

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Invalid YAML output from EXPLAIN
Date: 2010-06-09 11:07:09
Message-ID: AANLkTimWO4YN6wHbP-lEmcK1mcIbu8gQIGNzt7y3l2RS@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Wed, Jun 9, 2010 at 2:58 AM, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> wrote:
> On 9 June 2010 03:48, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> Er, I should also say, thanks for the report, and please test.  I am
>> definitely not an expert on YAML.
>>
>
> I'm not an expert on YAML either, but I don't think this works (at
> least it breaks against the online YAML parser here:
> http://yaml-online-parser.appspot.com/). If the string starts with a
> ".", then it tries to treat it as a floating point number and baulks
> if the rest of the string isn't a valid number.

Really? I enter:

- foo
- bar
- .baz

And it produces this JSON:

[
"foo",
"bar",
".baz"
]

That looks OK to me.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Joel Henrique 2010-06-09 11:15:21 Re: BUG #5475: Problem during Instalation
Previous Message Dave Page 2010-06-09 10:09:21 Re: BUG #5475: Problem during Instalation

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-06-09 11:09:24 Re: hstore ==> and deprecate =>
Previous Message Max Williams 2010-06-09 10:56:16 Large (almost 50%!) performance drop after upgrading to 8.4.4?