pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emmanuel Guyot <emmanuel.guyot@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6162: initdb : Windows username isn't escaped
Date: Sun, 14 Aug 2011 11:25:22 GMT
Message-ID: <201108141125.p7EBPMBS044920@wwwmaster.postgresql.org> (raw)


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.



view thread (2+ messages)  latest in thread

Message-ID: <201108141125.p7EBPMBS044920@wwwmaster.postgresql.org>
Permalink:  ../201108141125.p7EBPMBS044920@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201108141125.p7EBPMBS044920@wwwmaster.postgresql.org

 · 

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: emmanuel.guyot@gmail.com
  Subject: Re: BUG #6162: initdb : Windows username isn't escaped
  In-Reply-To: <201108141125.p7EBPMBS044920@wwwmaster.postgresql.org>
  References: <201108141125.p7EBPMBS044920@wwwmaster.postgresql.org>

* 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