Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T5031-0004VS-48 for pgsql-bugs@postgresql.org; Fri, 24 Aug 2012 20:00:03 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T502y-0006vF-RP for pgsql-bugs@postgresql.org; Fri, 24 Aug 2012 20:00:02 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T502y-0004zk-BZ for pgsql-bugs@postgresql.org; Fri, 24 Aug 2012 20:00:00 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1T502x-0004da-K3 for pgsql-bugs@postgresql.org; Fri, 24 Aug 2012 19:59:59 +0000 Date: Fri, 24 Aug 2012 19:59:59 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7505: Backslash escaping not necessary To: pgsql-bugs@postgresql.org From: ovadyaj@gmail.com X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201208/192 X-Sequence-Number: 33916 The following bug has been logged on the website: Bug reference: 7505 Logged by: Jeff Ovadya Email address: ovadyaj@gmail.com PostgreSQL version: 9.1.4 Operating system: PostgreSQL 9.1.4, compiled by Visual C++ build 150 Description: = INSERT INTO customer VALUES ( 20, 'Mr', 'Jeff', 'Baggott', 'Midtown Street A\\33', 'Milltown', 'MT9 8NQ', '746 3956'); results in two backslashes instead of a single one. = Inserting the address with a single backslash succeeds in saving the backslash with the address. Also noticed similar issue escaping single quotes: Backslash will not work to escape, but doubling up the quotes works.