Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0D8C61337B69 for ; Tue, 10 May 2011 21:57:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 66461-01 for ; Wed, 11 May 2011 00:57:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id F08821337BBA for ; Tue, 10 May 2011 21:57:17 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p4B0v5D18366; Tue, 10 May 2011 20:57:05 -0400 (EDT) From: Bruce Momjian Message-Id: <201105110057.p4B0v5D18366@momjian.us> Subject: Re: Changed behaviour of \' In-Reply-To: <18205.1305045877@sss.pgh.pa.us> To: Tom Lane Date: Tue, 10 May 2011 20:57:05 -0400 (EDT) CC: depesz@depesz.com, Martin Pitt , PostgreSQL Bugs X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1305075424-12164-1_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/75 X-Sequence-Number: 30214 --ELM1305075424-12164-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Tom Lane wrote: > hubert depesz lubaczewski writes: > > On Tue, May 10, 2011 at 06:20:23PM +0200, Martin Pitt wrote: > >> Since HISTORY does not mention this, is that an explicit decision to > >> finally deprecate the old \' syntax (which would be great, as it makes > >> this thing a lot more robust and deterministic, but it might be worth > >> mentioning it in HISTORY), or an unintended side effect? > > > release notes clearly mentions is: > > http://developer.postgresql.org/pgdocs/postgres/release-9-1.html > > - Change the default value of standard_conforming_strings to on (Robert Haas) > > This removes a long-standing incompatibility with the SQL standard; > > escape_string_warning has produced warnings about this usage for years. E'' > > strings are the proper way to embed escapes in strings and are unaffected by > > this change. > > Hmm ... considering that's the first thing in the release notes, I'm > surprised Martin missed it. Maybe he was looking for something > mentioning backslashes ... should we add a bit that specifically says > that backslashes are now no-ops by default? I added the word "backslash" before escapes in the attached applied patch. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + --ELM1305075424-12164-1_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/diff" diff --git a/doc/src/sgml/release-9.1.sgml b/doc/src/sgml/release-9.1.sgml new file mode 100644 index d70c806..7737381 *** a/doc/src/sgml/release-9.1.sgml --- b/doc/src/sgml/release-9.1.sgml *************** *** 62,68 **** standard; escape_string_warning has produced warnings about this usage for years. E'' ! strings are the proper way to embed escapes in strings and are unaffected by this change. --- 62,68 ---- standard; escape_string_warning has produced warnings about this usage for years. E'' ! strings are the proper way to embed backslash escapes in strings and are unaffected by this change. --ELM1305075424-12164-1_--