Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BE1961337B96 for ; Tue, 10 May 2011 13:44:58 -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 20630-03 for ; Tue, 10 May 2011 16:44:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 73CBA1337B61 for ; Tue, 10 May 2011 13:44:46 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p4AGibwe018206; Tue, 10 May 2011 12:44:37 -0400 (EDT) To: depesz@depesz.com cc: Martin Pitt , PostgreSQL Bugs Subject: Re: Changed behaviour of \' In-reply-to: <20110510163702.GA23678@depesz.com> References: <20110510162023.GA2490@piware.de> <20110510163702.GA23678@depesz.com> Comments: In-reply-to hubert depesz lubaczewski message dated "Tue, 10 May 2011 18:37:02 +0200" Date: Tue, 10 May 2011 12:44:37 -0400 Message-ID: <18205.1305045877@sss.pgh.pa.us> From: Tom Lane 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/73 X-Sequence-Number: 30212 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? regards, tom lane