Re: jsonb, unicode escapes and escaped backslashes

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: jsonb, unicode escapes and escaped backslashes
Date: 2015-01-27 16:43:42
Message-ID: 54C7C03E.7010504@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 01/27/2015 12:24 AM, Noah Misch wrote:
>> For the moment, maybe I could commit the fix for the non U+0000 case for
>> escape_json, and we could think some more about detecting and warning about
>> the problem strings.
> +1 for splitting development that way. Fixing the use of escape_json() is
> objective, but the choices around the warning are more subtle.
>

OK, so something like this patch? I'm mildly concerned that you and I
are the only ones commenting on this.

cheers

andrew

Attachment Content-Type Size
jsonb-unicode2.patch text/x-patch 5.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-01-27 17:08:25 Re: numeric access out of bounds
Previous Message Stephen Frost 2015-01-27 15:52:22 Re: pg_upgrade and rsync