From: Tom Lane <tgl@sss.pgh.pa.us>
To: Noah Misch <noah@leadboat.com>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Cc: digoal@126.com
Subject: Re: Re: [HACKERS] Re: BUG #9210: PostgreSQL string store bug? not enforce check with correct characterSET/encoding
Date: Sun, 23 Feb 2014 15:28:18 -0500
Message-ID: <18745.1393187298@sss.pgh.pa.us> (raw)
In-Reply-To: <20140221234332.GB3088878@tornado.leadboat.com>
References: <20140213140759.2710.49877@wrigleys.postgresql.org>
<20127.1392324548@sss.pgh.pa.us>
<12131.1392760137@sss.pgh.pa.us>
<4385.1392859333@sss.pgh.pa.us>
<20140220043940.GA3064539@tornado.leadboat.com>
<19842.1393021206@sss.pgh.pa.us>
<20140221234332.GB3088878@tornado.leadboat.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Noah Misch <noah@leadboat.com> writes:
> On Fri, Feb 21, 2014 at 05:20:06PM -0500, Tom Lane wrote:
>> ... However, I think there's a case to be
>> made for adding the additional pg_verify_mbstr() calls in the back
>> branches. We've been promising since around 8.3 that invalidly encoded
>> data can't get into a database, and it's disturbing to find that there
>> are leaks in that.
> I had a dark corner of an app break from the 8.4-vintage change to make
> E'abc\000def'::text raise an error rather than truncate the string. The old
> behavior was clearly wrong, but I was still glad the change arrived in a major
> release; the truncation happened to be harmless for that app. Adding
> pg_verify_mbstr() calls creates a similar situation.
Since I'm not hearing anybody else argue for a back-patch, I've committed
this in HEAD only.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, noah@leadboat.com, pgsql-hackers@postgresql.org, digoal@126.com
Subject: Re: [HACKERS] Re: BUG #9210: PostgreSQL string store bug? not enforce check with correct characterSET/encoding
In-Reply-To: <18745.1393187298@sss.pgh.pa.us>
References: <20140213140759.2710.49877@wrigleys.postgresql.org> <20127.1392324548@sss.pgh.pa.us> <12131.1392760137@sss.pgh.pa.us> <4385.1392859333@sss.pgh.pa.us> <20140220043940.GA3064539@tornado.leadboat.com> <19842.1393021206@sss.pgh.pa.us> <20140221234332.GB3088878@tornado.leadboat.com> <18745.1393187298@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox