Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 82EA51337B69 for ; Wed, 11 May 2011 11:26:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 15072-05 for ; Wed, 11 May 2011 14:25:53 +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 37A1F133740B for ; Wed, 11 May 2011 11:25:53 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p4BEPdM27777; Wed, 11 May 2011 10:25:39 -0400 (EDT) From: Bruce Momjian Message-Id: <201105111425.p4BEPdM27777@momjian.us> Subject: Re: Changed behaviour of \' In-Reply-To: <18742.1305085565@sss.pgh.pa.us> To: Tom Lane Date: Wed, 11 May 2011 10:25:39 -0400 (EDT) CC: depesz@depesz.com, Martin Pitt , PostgreSQL Bugs X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" 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/90 X-Sequence-Number: 30229 Tom Lane wrote: > Bruce Momjian writes: > > Tom Lane wrote: > >> 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. > > Actually, I had something more like this in mind ... Great. --------------------------------------------------------------------------- > > commit ea964a451e51a32b71d004d261874adb1e135066 > Author: Tom Lane > Date: Tue May 10 23:44:33 2011 -0400 > > Be more explicit about the meaning of the change in standard_conforming_strings. > > diff --git a/doc/src/sgml/release-9.1.sgml b/doc/src/sgml/release-9.1.sgml > index 7737381..280e0bb 100644 > --- a/doc/src/sgml/release-9.1.sgml > +++ b/doc/src/sgml/release-9.1.sgml > @@ -58,8 +58,9 @@ > > > > - This removes a long-standing incompatibility with the SQL > - standard; + By default, backslashes are now ordinary characters in string literals, > + not escape characters. This change removes a long-standing > + incompatibility with the SQL standard. linkend="guc-escape-string-warning">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 > > > regards, tom lane -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +