Re: json accessors - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: json accessors
Date
Msg-id 50BF973F.8090208@agliodbs.com
Whole thread Raw
In response to Re: json accessors  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: json accessors  (Merlin Moncure <mmoncure@gmail.com>)
Re: json accessors  (Andres Freund <andres@2ndquadrant.com>)
Re: json accessors  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
>> *) xmlpath/jsonpath do searching (and decomposition) but are very
>> clunky from sql perspective and probably absolutely nogo in terms if
>> GIST/GIN.  postgres spiritually wants to do things via operators and
>> we should (if possible) at least consider that first

Why is it a nogo for GiST?  Ltree works, doesn't it?  If we only support
equality lookups in what way is a JSON doc different from a collection
of ltree rows?

We'd probably want to use SP-GiST for better index size/performance, but
I don't see that this is impossible.  Just some difficult code.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: json accessors
Next
From: Robert Haas
Date:
Subject: Re: Dumping an Extension's Script