Re: Patch to add results for JSON operator examples - Mailing list pgsql-docs

From Bruce Momjian
Subject Re: Patch to add results for JSON operator examples
Date
Msg-id 20140422221932.GJ10046@momjian.us
Whole thread Raw
In response to Patch to add results for JSON operator examples  (Sehrope Sarkuni <sehrope@jackdb.com>)
List 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@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: archive_command vs recovery_command paths
Next
From: Bruce Momjian
Date:
Subject: Re: [doc] EXPLAIN CREATE MATERIALIZED VIEW AS?