Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 9BFB373FD6E for ; Sat, 9 Jun 2012 11:31:45 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SdMhb-00044K-7n for pgsql-bugs@postgresql.org; Sat, 09 Jun 2012 14:31:44 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q59EVTes027931; Sat, 9 Jun 2012 10:31:29 -0400 (EDT) From: Tom Lane To: Robert Haas cc: Shigeru Hanada , pgsql-bugs@postgresql.org Subject: Re: control character check in JSON type seems broken In-reply-to: References: <21413.1338857289@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 08 Jun 2012 13:29:41 -0400" Date: Sat, 09 Jun 2012 10:31:29 -0400 Message-ID: <27930.1339252289@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/77 X-Sequence-Number: 33304 Robert Haas writes: > On Mon, Jun 4, 2012 at 8:48 PM, Tom Lane wrote: >> And so is that.  IMO the error reporting in this module could stand to >> be reviewed altogether for compliance with our message guidelines. >> (For starters, why is it using errdetail_internal?)  I refrained from >> editorializing on-the-fly, but I'm not too pleased with what I saw. > Huh. I have no idea why I thought errdetail_internal was a good idea. > Should we just change all those to errdetail? Yeah, they're clearly user-facing so I see no reason why they shouldn't be translatable. regards, tom lane