dbTalk Databases Forums  

Re: [BUGS] control character check in JSON type seems broken

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] control character check in JSON type seems broken in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Haas
 
Posts: n/a

Default Re: [BUGS] control character check in JSON type seems broken - 06-08-2012 , 12:29 PM






On Mon, Jun 4, 2012 at 8:48 PM, Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> wrote:
Quote:
In addition, error message above seems corrupted in my environment.
Here we check not-escaped control character, so printing it with %c
formatting might break log files. *How about using decimal or hex dump
in such cases?

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?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-bugs mailing list (pgsql-bugs (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] control character check in JSON type seems broken - 06-09-2012 , 09:31 AM






Robert Haas <robertmhaas (AT) gmail (DOT) com> writes:
Quote:
On Mon, Jun 4, 2012 at 8:48 PM, Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> 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

--
Sent via pgsql-bugs mailing list (pgsql-bugs (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.