pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: depesz@depesz.com
Cc: Martin Pitt <mpitt@debian.org>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Changed behaviour of \'
Date: Tue, 10 May 2011 23:46:05 -0400
Message-ID: <18742.1305085565@sss.pgh.pa.us> (raw)
In-Reply-To: <201105110057.p4B0v5D18366@momjian.us>
References: <201105110057.p4B0v5D18366@momjian.us>

Bruce Momjian <bruce@momjian.us> 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 ...

commit ea964a451e51a32b71d004d261874adb1e135066
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date:   Tue May 10 23:44:33 2011 -0400

    Be more explicit about the meaning of the change in standard_conforming_strings.

inline patch 1: doc/src/sgml/release-9.1.sgml (+3/-2 lines) download inline-1.patchdiff --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 @@ </para> <para> - This removes a long-standing incompatibility with the SQL - standard; <link + By default, backslashes are now ordinary characters in string literals, + not escape characters. This change removes a long-standing + incompatibility with the SQL standard. <link linkend="guc-escape-string-warning"><varname>escape_string_warning</></link> has produced warnings about this usage for years. <literal>E''</> strings are the proper way to embed backslash escapes in strings and are
regards, tom lane

view thread (8+ messages)  latest in thread

Message-ID: <18742.1305085565@sss.pgh.pa.us>
Permalink:  ../18742.1305085565@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18742.1305085565@sss.pgh.pa.us

 ·  · 

reply

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, bruce@momjian.us, depesz@depesz.com, mpitt@debian.org
  Subject: Re: Changed behaviour of \'
  In-Reply-To: <18742.1305085565@sss.pgh.pa.us>
  References: <201105110057.p4B0v5D18366@momjian.us> <18742.1305085565@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