Re: Patch to add results for JSON operator examples

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Patch to add results for JSON operator examples
Date: 2014-04-22 22:19:32
Message-ID: 20140422221932.GJ10046@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Fri, Mar 28, 2014 at 03:51:47PM -0400, Sehrope Sarkuni wrote:
> The attached patches adds an "Example Result" column to the json/jsonb
> operators table[1] that has the evaluated result of each example. I
> think this makes it much easy to reason what each operator does. The
> two patches are mutually exclusive and I recommend using the -better
> patch.
>
> The patches only touches the json and jsonb operators table, the
> additional jsonb operators table is left without example results. All
> the results for those examples are "true" so I don't think it's
> needed. Maybe wouldn't hurt though.
>
> [1]: http://www.postgresql.org/docs/devel/static/functions-json.html
>
> The first file (docs-json-operator-example.diff) adds results for the
> existing operator examples.
>
> The other file (docs-json-operator-example-better.diff) replaces some
> of the examples that return JSON objects so that the result is an
> object (not a scalar). I like this one better.

"Better" patch version applied. Thanks.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2014-04-22 22:32:30 Re: Re: default opclass for jsonb (was Re: Call for GIST/GIN/SP-GIST opclass documentation)
Previous Message Bruce Momjian 2014-04-22 21:54:54 Re: Patch for CREATE RULE sgml -- Was in: [DOCS]