Re: Further issues with jsonb semantics, documentation - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Further issues with jsonb semantics, documentation
Date
Msg-id 20150604191615.GL133018@postgresql.org
Whole thread Raw
In response to Re: Further issues with jsonb semantics, documentation  (Peter Geoghegan <pg@heroku.com>)
Responses Re: Further issues with jsonb semantics, documentation
Re: Further issues with jsonb semantics, documentation
Re: Further issues with jsonb semantics, documentation
List pgsql-hackers
I'm just skimming here, but if a jsonb_path type is being proposed,
perhaps it would be better not to have operators that take text or
text[] as second argument.  We can provide that functionality with just
functions.  For example, it will be confusing to have 

jsonb 'some json value' - '{foo,bar}'

operate too differently from

jsonb 'some json value' - json_path '{foo,bar}'

And it will be a nasty regression to have 9.5 allow
jsonb 'some json value' - '{foo,bar}'
and then have 9.6 error out with "ambiguous operator" when the json_path
thing is added.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Further issues with jsonb semantics, documentation
Next
From: Tom Lane
Date:
Subject: Re: brin regression test intermittent failures