Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXdBQ-0006Vl-Ha for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Apr 2014 21:03:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WXdBP-00076K-V7 for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Apr 2014 21:03:51 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXdBN-00074D-Sp for pgsql-hackers@postgresql.org; Tue, 08 Apr 2014 21:03:50 +0000 Received: from mail-ob0-f178.google.com ([209.85.214.178]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXdBL-00054z-0h for pgsql-hackers@postgresql.org; Tue, 08 Apr 2014 21:03:49 +0000 Received: by mail-ob0-f178.google.com with SMTP id wp18so1671965obc.23 for ; Tue, 08 Apr 2014 14:03:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=NNDATlAP/g3Wmp28ma5T8UUkr+U2iQpX1nVPJOJnmVA=; b=hHYC6Q63tYjJuYXZ0GNCgBSTCKCKwJZ8Dqyn477TF8ldtq95gnXkyWcep7xirVMLyj IKeNL3YH7iRqiAJr2dvXeKhUC9PfZznEylmU8jMKS40yOUJ0/UVFbLRPjzVPwD694BDf lgpC3eMLHnecIsrSmPDwwG566qa6O61cw2EWaDtZRHI98+MJAV+xBNaSYQrsGNhRm0xo 16LAFYCnYq6aJj3GFnY+oXdkVCBTdwmUbvGjVLt76UzpcNzQ5tS+S9CrzZ23kvz67pLF jxe2EV+j4z2YZTSjs1PPrJjBWKBTzSI6XHFbGX9EbKaQRWoWcdWyvRLHOmE7kO6x5EVg yBmQ== X-Gm-Message-State: ALoCoQlDJ7YkSSl7ISrgfOfNgzrx14iuIQx76wyM9fbNv6nzickLVC7NnKFd2QG8g7OhO4NxzcN6 MIME-Version: 1.0 X-Received: by 10.60.61.66 with SMTP id n2mr5118338oer.11.1396991026333; Tue, 08 Apr 2014 14:03:46 -0700 (PDT) Received: by 10.182.233.228 with HTTP; Tue, 8 Apr 2014 14:03:46 -0700 (PDT) In-Reply-To: <27299.1396989666@sss.pgh.pa.us> References: <27299.1396989666@sss.pgh.pa.us> Date: Tue, 8 Apr 2014 14:03:46 -0700 Message-ID: Subject: Re: Call for GIST/GIN/SP-GIST opclass documentation From: Peter Geoghegan To: Tom Lane Cc: pgsql-hackers@postgresql.org, pgsql-docs@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Tue, Apr 8, 2014 at 1:41 PM, Tom Lane wrote: > I just created sections in the SGML manual chapters about GIST, GIN, and > SP-GIST to hold documentation about the standard opclasses provided for > them: I think that that's a good idea. I too was bothered by this omission. > Of the two operator classes for type jsonb, jsonb_ops is the > default. jsonb_hash_ops supports fewer operators but will work with > larger indexed values than jsonb_ops can support. > > Is that accurate? Do we need to say more? Well, I'm not sure that it's worth noting there, but as you probably already know jsonb_hash_ops will perform a lot better than the default GIN opclass, and will have much smaller indexes. FWIW I think that the size limitation is overblown, and performance is in fact the compelling reason to prefer jsonb_hash_ops, although it's probably incongruous to explain the issues that way in this section of the docs. It probably suffices that that is covered in the "JSON Types" section. -- Peter Geoghegan -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers