pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Code and docs review for cube kNN support.
Date: Mon, 28 Dec 2015 19:39:23 +0000
Message-ID: <E1aDddb-00028e-Nr@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Code and docs review for cube kNN support.

Commit 33bd250f6c4cc309f4eeb657da80f1e7743b3e5c could have done with
some more review:

Adjust coding so that compilers unfamiliar with elog/ereport don't complain
about uninitialized values.

Fix misuse of PG_GETARG_INT16 to retrieve arguments declared as "integer"
at the SQL level.  (This was evidently copied from cube_ll_coord and
cube_ur_coord, but those were wrong too.)

Fix non-style-guide-conforming error messages.

Fix underparenthesized if statements, which pgindent would have made a
hash of, and remove some unnecessary parens elsewhere.

Run pgindent over new code.

Revise documentation: repeated accretion of more operators without any
rethinking of the text already there had left things in a bit of a mess.
Merge all the cube operators into one table and adjust surrounding text
appropriately.

David Rowley and Tom Lane

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/81ee726d87ec67c4f2846110c99f72e8a20dcd07

Modified Files
--------------
contrib/cube/cube.c              |  128 ++++++++++++------------
contrib/cube/expected/cube.out   |   14 +--
contrib/cube/expected/cube_1.out |   14 +--
contrib/cube/expected/cube_2.out |   14 +--
contrib/cube/expected/cube_3.out |   14 +--
doc/src/sgml/cube.sgml           |  199 ++++++++++++++++++--------------------
6 files changed, 186 insertions(+), 197 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1aDddb-00028e-Nr@gemulon.postgresql.org>
Permalink:  ../E1aDddb-00028e-Nr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1aDddb-00028e-Nr@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Code and docs review for cube kNN support.
  In-Reply-To: <E1aDddb-00028e-Nr@gemulon.postgresql.org>
  References: <E1aDddb-00028e-Nr@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox