Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, nicolas(at)marchildon(dot)net, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd
Date: 2013-12-04 19:34:57
Message-ID: 23403.1386185697@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> I have developed the attached patch to fix this and another instance I
> saw.

I think you need to re-read the part of the man page you quoted,
and set errno to zero beforehand, if you're going to rely on it
being zero after a non-error return.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message maciek 2013-12-04 20:04:15 BUG #8656: Duplicate data violating unique constraints
Previous Message Kevin Grittner 2013-12-04 19:25:38 Re: BUG #8655: pg_restore problems with materialized views