From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, nicolas(at)marchildon(dot)net, Bugs for PostgreSQL <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd |
Date: | 2013-12-18 17:16:28 |
Message-ID: | 20131218171628.GA1690@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Mon, Dec 9, 2013 at 07:47:34PM -0500, Bruce Momjian wrote:
> On Mon, Dec 9, 2013 at 06:45:39PM -0300, Alvaro Herrera wrote:
> > Bruce Momjian wrote:
> >
> > > return STATUS_ERROR;
> > > }
> > >
> > > ! user_name = get_user_name(&errstr);
> > > ! if (!user_name)
> > > {
> > > ! ereport(LOG, (errmsg("%s\n", errstr)));
> > > ! pfree(errstr);
> > > return STATUS_ERROR;
> > > }
> >
> > The message is already translated by get_user_name, so I think this
> > should use errmsg_internal() instead of errmsg(). Also, why do you add
> > a newline?
>
> OK, done.
>
> > Not clear whether the new file should be in src/port or src/common.
>
> Agreed. It isn't designed to add missing OS functionality, but it is
> mostly OS-specific code.
>
> Updated patch attached, with Tom's requested changes.
Patch applied.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
From | Date | Subject | |
---|---|---|---|
Next Message | mz | 2013-12-18 19:08:19 | BUG #8685: "alter default privileges" cannot revoke default execute privilege on functions |
Previous Message | Brett Neumeier | 2013-12-18 16:56:45 | Re: BUG #8684: Tables with custom range domain type cannot be analyzed |