Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WjEQv-0003fZ-P2 for pgsql-hackers@arkaria.postgresql.org; Sat, 10 May 2014 21:03:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WjEQv-0004nv-6R for pgsql-hackers@arkaria.postgresql.org; Sat, 10 May 2014 21:03:49 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WjEQt-0004mF-LT for pgsql-hackers@postgresql.org; Sat, 10 May 2014 21:03:47 +0000 Received: from mail-qc0-x230.google.com ([2607:f8b0:400d:c01::230]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WjEQq-0002q0-VQ for pgsql-hackers@postgresql.org; Sat, 10 May 2014 21:03:47 +0000 Received: by mail-qc0-f176.google.com with SMTP id r5so6133323qcx.7 for ; Sat, 10 May 2014 14:03:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=NFsbE39IoO03gYAN8kBRrCpBYRWd4PaWKxOztAk5TOM=; b=PgbWTOfNkJ40DsXlXyQ76EQraYeFhGH0n5PPNO8g0n/vjyIHXog6uWDw418PBFk8vX yf3NgiSehhubz502IF/3SPE9X+yKhj9xCBCJH5+BiGyBrf5lWyJVPOD+/MRwZRbc5W7A BfqVRol8JI7SnqUCnRSIlzcFOcUDQM3pNy8b/z3RGOAi2U4DyeE6xsvT9tD5+pwSrKm+ igkUF063kP1MBjEVDXXkFycWFn5CPyh+kT1oN94SiEENjq0+KX1j4kaVaAXY7NjQgdlo x4Y54RtMi9Ofu7RjPHo+DO0CfCTlmT6K5klRvbTynemhJU0LCrAiY5EW3boU0u33/C1k G5HA== X-Received: by 10.224.114.145 with SMTP id e17mr25237283qaq.53.1399755824434; Sat, 10 May 2014 14:03:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.29.130 with HTTP; Sat, 10 May 2014 14:03:24 -0700 (PDT) Reply-To: obartunov@gmail.com In-Reply-To: <536E9386.6050701@dunslane.net> References: <16769.1399407530@sss.pgh.pa.us> <20140506212020.GK30817@momjian.us> <57E8AA44-F816-45F2-BB61-5A854FFB0A97@justatheory.com> <28554.1399414853@sss.pgh.pa.us> <20140508134701.GO30817@momjian.us> <5819.1399558614@sss.pgh.pa.us> <1888.1399588751@sss.pgh.pa.us> <20140509033405.GA23254@momjian.us> <536C550F.50108@archidevsys.co.nz> <18360.1399633457@sss.pgh.pa.us> <20140509135336.GC23254@momjian.us> <28961.1399668272@sss.pgh.pa.us> <536E8F3A.40706@vmware.com> <536E9386.6050701@dunslane.net> From: Oleg Bartunov Date: Sun, 11 May 2014 01:03:24 +0400 Message-ID: Subject: Re: default opclass for jsonb (was Re: Call for GIST/GIN/SP-GIST opclass documentation) To: Andrew Dunstan Cc: Heikki Linnakangas , Tom Lane , Greg Stark , Bruce Momjian , Gavin Flower , "David E. Wheeler" , Robert Haas , Peter Geoghegan , "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset=UTF-8 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 +1 but bit confused with json instead of jsonb On Sun, May 11, 2014 at 1:00 AM, Andrew Dunstan wrote: > > On 05/10/2014 04:42 PM, Heikki Linnakangas wrote: >> >> >> >> The main difference between the two opclasses from a user's standpoint is >> not whether they hash or not. The big difference is that one indexes >> complete paths from the root, and the other indexes just the "leaf" level. >> For example, if you have an object like '{"foo": {"bar": 123 } }', one will >> index "foo", "foo->bar", and "foo->bar->123" while the other will index >> "foo", "bar" and "123". >> >> Whether the opclasses use hashing to shorten the key is an orthogonal >> property, and IMHO not as important. To reflect that, I suggest that we name >> the opclasses: >> >> json_path_ops >> json_value_ops >> >> or something along those lines. >> >> > > > That looks like the first suggestion I've actually liked and that users will > be able to understand. > > cheers > > andrew > > > > > -- > Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-hackers -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers