Re: [PATCH] initdb: Treat empty -U argument as unset username

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Robert Treat <rob(at)xzilla(dot)net>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Jianghua Yang <yjhjstz(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] initdb: Treat empty -U argument as unset username
Date: 2025-07-02 07:16:12
Message-ID: 0231C713-50C8-4BE5-B7C8-106F57A79655@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 2 Jul 2025, at 06:31, Robert Treat <rob(at)xzilla(dot)net> wrote:

> FWIW, I tend to agree with David; I feel like if a user passes in -U,
> there was probably a reason, and a good error message would be more
> useful in clarifying things rather than blindly pushing forward with
> potentially the wrong thing.

Agreed, and it's not even clear that the previous code was intentionally trying
to allow an empty -U. An improved error message would be a good patch though.

--
Daniel Gustafsson

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2025-07-02 07:19:39 Re: cpluspluscheck vs ICU again
Previous Message shveta malik 2025-07-02 07:05:59 Re: Using failover slots for PG-non_PG logical replication