Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T1L7K-0008Fo-8R for pgsql-docs@postgresql.org; Tue, 14 Aug 2012 17:41:22 +0000 Received: from mail-lb0-f174.google.com ([209.85.217.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T1L7H-0002pe-Fz for pgsql-docs@postgresql.org; Tue, 14 Aug 2012 17:41:21 +0000 Received: by lbbgj3 with SMTP id gj3so383624lbb.19 for ; Tue, 14 Aug 2012 10:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ZAirg5VEXZCPITUNZpYAsTehN6FXCaCbzP3myJSFA4A=; b=K3jFEIVJhzvVeE3qN3G5khMCMvIiIxs8u9Kw7ltMnKFnLotUyLOaEceYZbnILTNOYj 7qH+sNg+iTQJ7PKGHCDrMCcvd7d5FuH6RWHWZTwzu2wZHLcCyR7ROdiaa+mC9G6/ahB5 5hgAs6wK9nxOfHCFCjqiAb3g1phDjUh5yigWllEPVuAIGFAsmAjSIlXZB4vaf5pW1V1J EuY1iLJ0gDhIHAYGxW6IqCYL4wXmyNWJim96utGEcyirQ7vEeKOuygCL47boDiQFfe8/ 5vALoqhPVL6WxhF6Q7NQFjCmSbiK/JdxnM3Pk4EzP36E0FdGx2y/g6UZVOrUPKz2+TKn EuQg== Received: by 10.112.84.168 with SMTP id a8mr8264873lbz.92.1344966078731; Tue, 14 Aug 2012 10:41:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.17.5 with HTTP; Tue, 14 Aug 2012 10:40:58 -0700 (PDT) In-Reply-To: <8409.1344704658@sss.pgh.pa.us> References: <8409.1344704658@sss.pgh.pa.us> From: Daniele Varrazzo Date: Tue, 14 Aug 2012 18:40:58 +0100 Message-ID: Subject: Re: GIST operators docs [was: [HACKERS] Patch: add GiST support for BOX @> POINT queries] To: Tom Lane Cc: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201208/15 X-Sequence-Number: 7408 On Sat, Aug 11, 2012 at 6:04 PM, Tom Lane wrote: > Daniele Varrazzo writes: >> 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 agree this is pretty incomplete ... > >> 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. > > ... but I don't think I want to fix it along those lines. Consider > what would happen if we tried to annotate every operator supported by > btree indexes that way, for example. It'd be very cluttering. Agreed it would be cluttering for btree, but btree operators are pretty well known and surprise-free, whereas the geometric/interval ones are quite exotic and the interaction between types not obvious. > It'd > probably be pretty cluttering even if we restrict it to GIST cases. There would be more information, but I don't think a useful page is an impossible task. What I have in mind is a notes column and free descriptive text below the table as in . > I think the charter of 9.11 is to tell you what the operators *do*, > not which ones are amenable to indexing. In the context of using intervals or geometric types to build indexes one must design his system with this knowledge. He can only use the operators that support indexes, the others are out of the game. > Alternatively, I could see adding tables of supported operators in > the GIST (and SPGIST and GIN) chapters of part VII, and linking to > those from 11.2. That would be probably fine too. The other propositions (extending psql's \do and a query to be copypasted into psql) are still a form of help but require another tool to be used out of the Fine Manual. -- Daniele