Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2BB0DB5DBC4 for ; Sun, 14 Aug 2011 08:25:24 -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 14028-03 for ; Sun, 14 Aug 2011 11:25:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 59A64B5D803 for ; Sun, 14 Aug 2011 08:25:23 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p7EBPM1j044921 for ; Sun, 14 Aug 2011 11:25:22 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p7EBPMBS044920; Sun, 14 Aug 2011 11:25:22 GMT (envelope-from www) Date: Sun, 14 Aug 2011 11:25:22 GMT Message-Id: <201108141125.p7EBPMBS044920@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6162: initdb : Windows username isn't escaped From: "Emmanuel Guyot" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201108/90 X-Sequence-Number: 30902 The following bug has been logged online: Bug reference: 6162 Logged by: Emmanuel Guyot Email address: emmanuel.guyot@gmail.com PostgreSQL version: 8.2.3 Operating system: Windows 7 Description: initdb : Windows username isn't escaped Details: Initdb crashes when I use it with a windows username that has a quote inside (e.g. : L'élixir) Here is the error reported : initialisation des droits sur les objets internes... 2010-05-14 17:01:25.434 FATAL: syntax error at or near "élixir" at character 44 2010-05-14 17:01:25.434 STATEMENT: UPDATE pg_class SET relacl = E'{"=r/\\"L'élixir\\""}' WHERE relkind IN ('r', 'v', 'S') AND relacl IS NULL; If I force the username as an option with the escaped value L\'élixir the initdb works fine, but I can't start the server. So I can't find a workaround. I've watched the newer sources of initdb and I can't see any change for this bug.