Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqohX-0007NG-Rm for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Oct 2015 20:49:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZqohX-00068P-2U for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Oct 2015 20:49:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZqohW-00067f-3W for pgsql-bugs@postgresql.org; Mon, 26 Oct 2015 20:49:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZqohT-0005FF-7y for pgsql-bugs@postgresql.org; Mon, 26 Oct 2015 20:49:05 +0000 MIME-Version: 1.0 Subject: BUG #13736: pg_dump should use E'' quotes To: pgsql-bugs@postgresql.org From: felipe@felipegasper.com Date: Mon, 26 Oct 2015 20:48:47 +0000 Message-ID: <20151026204847.3021.73649@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13736 Logged by: Felipe Gasper Email address: felipe@felipegasper.com PostgreSQL version: 9.4.5 Operating system: Linux Description: When dumping a DB whose name has a backslash in it, I get a warning like: ------ pg_dump: WARNING: nonstandard use of \\ in a string literal LINE 1: ...) AS description FROM pg_database WHERE datname = 'i have / ... ^ HINT: Use the escape string syntax for backslashes, e.g., E'\\'. ------ pg_dump should be using PostgreSQL’s own recommended syntax, should it not? Is there anything that would break from making this change? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs