Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 05C192E0049 for ; Wed, 30 Apr 2008 11:28:38 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 86071-04 for ; Wed, 30 Apr 2008 11:28:22 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.61.230.242]) by developer.postgresql.org (Postfix) with ESMTP id 4999F2E003B for ; Wed, 30 Apr 2008 11:28:31 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 85E615C0B9; Wed, 30 Apr 2008 22:28:26 +0800 (WST) Received: from localhost (access [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id A69821E0435; Wed, 30 Apr 2008 22:28:30 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (access.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zPWrqaWOhXnZ; Wed, 30 Apr 2008 22:28:28 +0800 (WST) Received: from [203.161.97.213] (203.161.97.213.static.amnet.net.au [203.161.97.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTP id 384C21E0434; Wed, 30 Apr 2008 22:28:28 +0800 (WST) Message-ID: <48188201.6010304@postnewspapers.com.au> Date: Wed, 30 Apr 2008 22:28:17 +0800 From: Craig Ringer User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Andy Anderson Cc: pgsql-general@postgresql.org Subject: Re: Quoting " References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/1410 X-Sequence-Number: 132379 Andy Anderson wrote: > In a test I just did, the sequence \" (backslash double-quote) is > interpreted as just a " inside of the E'...' string constant expression. > This is great, since PHP's addslashes() sticks them in along with the > other stuff I really need to quote like ' and \. But I see that \" isn't > documented in the manual in section 4.1.2.1. I assume this is, in fact, > standard behavior for Postgres? (Perhaps a comprehensive table might be > a good idea at this point in the manual.) craig=# SELECT E'\z\v\k\-'; ?column? ---------- zvk- (1 row) From 4.1.2.1: ... "Any other character following a backslash is taken literally." I didn't see any escape sequences being interpreted other than those that're already documented in the section of 4.1.2.1 that describes E'' strings. -- Craig Ringer