Re: Avoiding possible future conformance headaches in JSON work

2019-09-21 Thread Tom Lane
Peter Eisentraut writes: > On 2019-09-20 01:14, Tom Lane wrote: >> Sure. But we also modeled those features on the same language that the >> committee is looking at (or at least I sure hope we did). So it's >> reasonable to assume that they would come out at the same spot without >> any

Re: Avoiding possible future conformance headaches in JSON work

2019-09-20 Thread Peter Eisentraut
On 2019-09-20 01:14, Tom Lane wrote: > Chapman Flack writes: >> Sure, against *every* non-spec feature we have or ever will have, someone >> /could/ raise a generic "what if SQL committee might add something pretty >> similar in future". >> But what we have in this case are specific non-spec

Re: Avoiding possible future conformance headaches in JSON work

2019-09-19 Thread Tom Lane
Chapman Flack writes: > Sure, against *every* non-spec feature we have or ever will have, someone > /could/ raise a generic "what if SQL committee might add something pretty > similar in future". > But what we have in this case are specific non-spec features (array, map, > and sequence

Re: Avoiding possible future conformance headaches in JSON work

2019-09-19 Thread Tom Lane
Chapman Flack writes: > But is that even the point? It's already noted in [1] that the standard > calls for one style of regexps and we're providing another. > It's relatively uncomplicated now to add some kind of distinguishing > syntax for our posix flavor of like_regex. Yes, it would be a

Re: Avoiding possible future conformance headaches in JSON work

2019-06-18 Thread Chapman Flack
On 6/18/19 12:51 PM, Oleg Bartunov wrote: >> have 'pg lax $.map(x => x + 10)'. > > This is exactly what we were thinking about ! Perfect! >> specify a POSIX re. Or, as like_regex has a named-parameter-like >> syntax--like_regex("abc" flag "i")--perhaps 'posix' should just be >> an extra keyword

Re: Avoiding possible future conformance headaches in JSON work

2019-06-18 Thread Oleg Bartunov
On Sat, 1 Jun 2019, 16:41 Chapman Flack, wrote: > Hi, > > We had a short conversation about this on Friday but I didn't have time > to think of a constructive suggestion, and now I've had more time to > think about it. > > Regarding the proposed PG 13 jsonpath extensions (array, map, and >

Re: Avoiding possible future conformance headaches in JSON work

2019-06-18 Thread Alvaro Herrera
On 2019-Jun-01, Chapman Flack wrote: > In either case, perhaps we should immediately add a way to identify a > jsonpath as being PostgreSQL-extended. Maybe a keyword 'pg' that can > be accepted at the start in addition to any lax/strict, so you could > have 'pg lax $.map(x => x + 10)'. > > If we

Avoiding possible future conformance headaches in JSON work

2019-06-01 Thread Chapman Flack
Hi, We had a short conversation about this on Friday but I didn't have time to think of a constructive suggestion, and now I've had more time to think about it. Regarding the proposed PG 13 jsonpath extensions (array, map, and sequence constructors, lambdas, map/fold/reduce, user-defined