Re: making the backend's json parser work in frontend code - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: making the backend's json parser work in frontend code
Date
Msg-id 20200123200637.GA30043@alvherre.pgsql
Whole thread Raw
In response to Re: making the backend's json parser work in frontend code  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On 2020-Jan-23, Bruce Momjian wrote:

> Yes, good point.  I think my one concern is that someone might specify
> both keys in the JSON, which would be very odd.

Just make that a reason to raise an error.  I think it's even possible
to specify that as a JSON Schema constraint, using a "oneOf" predicate.

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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: making the backend's json parser work in frontend code
Next
From: David Christensen
Date:
Subject: Documentation patch for ALTER SUBSCRIPTION