Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T0DM8-0001QS-TE for pgsql-docs@postgresql.org; Sat, 11 Aug 2012 15:12:01 +0000 Received: from mail-lb0-f174.google.com ([209.85.217.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T0DM4-0004Xu-UO for pgsql-docs@postgresql.org; Sat, 11 Aug 2012 15:11:58 +0000 Received: by lbbgj3 with SMTP id gj3so678313lbb.19 for ; Sat, 11 Aug 2012 08:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=YsTM4m//vImaN2R6iFpx0DO1A2h6zaegayTBjyNzhxE=; b=ASbsmXPiKznKYzp1MKn9x/sh51nkqte07qU62YfQX0m5GzNg/SVHPg41oKb148mnPT gbFCXsIqYW+zktu+NYLXiL3G6cWpMPitzaQW7rhJ2J0x69va2LGZ+/gHaGxRTlU+X2ws oCPB7c62b+D2CogRV5ZoVsdmdxgYgcjiCBwqT6SDCd7ILK6OCTGnFXfsxWHDve6GJs5D 855I2oIftsQCF/dK+2XfGatpJW5EThQe24d+uceml7l6jj90JrICJyBxXq8kOHJPx15a 40RycoxooQa2hCcziQWtO0oGfGIDM3cMV8mNewnE5n2Fng+SR7UCOZkPQ0dfbXCLc2zk bF4Q== Received: by 10.112.47.231 with SMTP id g7mr3998187lbn.29.1344697915723; Sat, 11 Aug 2012 08:11:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.17.5 with HTTP; Sat, 11 Aug 2012 08:11:35 -0700 (PDT) From: Daniele Varrazzo Date: Sat, 11 Aug 2012 16:11:35 +0100 Message-ID: Subject: GIST operators docs [was: [HACKERS] Patch: add GiST support for BOX @> POINT queries] To: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201208/6 X-Sequence-Number: 7399 On Sat, Jul 9, 2011 at 3:29 PM, Hitoshi Harada wrote: > It looks like the time to wrap up. I marked "Return with Feedback" on > this patch, since response from author has not come for a while. Hello, I've just stumbled on the issue mentioned in this thread, which is not fixed in 9.1. To my knowledge the box @> point index limitation is not described anywhere in the docs (which has costed me quite some time in debug and the redesign of several functions to work around the issue). Wouldn't be awesome to document what are the types/operators combinations that can be successfully used in gist indexes? The style of the docs is currently: - in 11.2: on the type page, a list of operators without a single word on their meaning, with a link to 9.11 - in 9.11 the ops explanation with no info about indexing or types support I would suggest dropping the list in 11.2, leaving only the link ("several operators support indexing: see section 9.11 for a list"), and be explicit in 9.11 in what operator and what data type can be used in an index. I regularly need two browser tabs open to consult these docs, bouncing back and forth. It's worth noting that @> is listed in the indexed operators but the only example provided for it in 9.11 is circle @> point which is exactly one of the combinations not working with the index. Once ops and index support info are on the same page, the extra notes about the supported data types would feel like at home there. I'm new to them, but I suspect the range operators for 9.2 have the same docs usability issue (operator and index support on two different page). I don't know what the operators limitations are, and you have a few samples of my English. Modulo that, I can provide patches if you want :) -- Daniele