Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wcw7v-00041n-Lg for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Apr 2014 12:18:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wcw7v-0001mU-5J for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Apr 2014 12:18:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wcw7s-0001mJ-Ab for pgsql-hackers@postgresql.org; Wed, 23 Apr 2014 12:18:08 +0000 Received: from mail-qa0-x235.google.com ([2607:f8b0:400d:c00::235]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wcw7p-0001rZ-H3 for pgsql-hackers@postgresql.org; Wed, 23 Apr 2014 12:18:07 +0000 Received: by mail-qa0-f53.google.com with SMTP id w8so735490qac.40 for ; Wed, 23 Apr 2014 05:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qH0D8gpOyd1jkyFNt8P8vjgXc+fhdmdy+5YZ/ZZru1o=; b=QIwxA0Gqzcpn8JxuSGmZ5yPo3bL8Qabf7AUK5ntOwyOoQdpx9wkf6JrUUiYGT/6arz NePq9zOadvUHIocqClAYN2zq0kEPBM4fw3y6gewU9ZNRgcV01Ea9kKFGaSIkBSKZycoQ 1h3kdxxA/aY8A/aFqCV25JxPjLKE6R45TCUE19+vJAvir6XnKHOadDEVz0RNdBTcvslW O0k3clz8VZp0UHhh96FySaUmArRbqjsBRaCcNvpUQzedwnp88nFlHuifdu4lfNkC17+1 hse/UPpOwRfr8QUkNjcWLb3fK3ODurpewdw3bw1wfsXpg6yCvFmxj1ETFh+7TeKJcvLc zFPA== MIME-Version: 1.0 X-Received: by 10.229.221.194 with SMTP id id2mr56582002qcb.5.1398255469367; Wed, 23 Apr 2014 05:17:49 -0700 (PDT) Received: by 10.140.33.196 with HTTP; Wed, 23 Apr 2014 05:17:49 -0700 (PDT) In-Reply-To: <20140423105630.GQ10046@momjian.us> References: <29030.1396993582@sss.pgh.pa.us> <534475B7.6020908@dunslane.net> <5344EAA4.1050605@vmware.com> <30137.1397057056@sss.pgh.pa.us> <20140422223230.GL10046@momjian.us> <535777DA.3000203@2ndquadrant.com> <20140423105630.GQ10046@momjian.us> Date: Wed, 23 Apr 2014 21:17:49 +0900 Message-ID: Subject: Re: Re: default opclass for jsonb (was Re: Call for GIST/GIN/SP-GIST opclass documentation) From: Michael Paquier To: Bruce Momjian Cc: Petr Jelinek , Peter Geoghegan , Greg Stark , Tom Lane , Robert Haas , Heikki Linnakangas , Andrew Dunstan , "pgsql-hackers@postgresql.org" Content-Type: multipart/alternative; boundary=001a113439208e980704f7b4b882 X-Pg-Spam-Score: -2.0 (--) 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 --001a113439208e980704f7b4b882 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Apr 23, 2014 at 7:56 PM, Bruce Momjian wrote: > On Wed, Apr 23, 2014 at 10:20:42AM +0200, Petr Jelinek wrote: > > I vote for changing it, even though neither option is ideal I think > > that given the nature of datatype the current default will break > > inserts for common usage pattern and that's much worse than not > > being able to use the index for some operators. > > I agree. We should choose the most general option as the default. > +1. Less operators are supported by the now-named jsonb_hash_ops but at least users won't be surprised by failures caused by too long index records. -- Michael --001a113439208e980704f7b4b882 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable --001a113439208e980704f7b4b882--