Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wcj2P-0004D0-Nd for pgsql-docs@arkaria.postgresql.org; Tue, 22 Apr 2014 22:19:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wcj2P-0004Pl-6E for pgsql-docs@arkaria.postgresql.org; Tue, 22 Apr 2014 22:19:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wcj2O-0004Pf-M7 for pgsql-docs@postgresql.org; Tue, 22 Apr 2014 22:19:36 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wcj2L-00023L-MP for pgsql-docs@postgresql.org; Tue, 22 Apr 2014 22:19:36 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Wcj2K-0004xS-Nz; Tue, 22 Apr 2014 18:19:32 -0400 Date: Tue, 22 Apr 2014 18:19:32 -0400 From: Bruce Momjian To: Sehrope Sarkuni Cc: pgsql-docs@postgresql.org Subject: Re: Patch to add results for JSON operator examples Message-ID: <20140422221932.GJ10046@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org 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 http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs