Re: [PATCH] initdb: Treat empty -U argument as unset username - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: [PATCH] initdb: Treat empty -U argument as unset username
Date
Msg-id 0231C713-50C8-4BE5-B7C8-106F57A79655@yesql.se
Whole thread Raw
In response to Re: [PATCH] initdb: Treat empty -U argument as unset username  (Robert Treat <rob@xzilla.net>)
List pgsql-hackers
> On 2 Jul 2025, at 06:31, Robert Treat <rob@xzilla.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




pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: Using failover slots for PG-non_PG logical replication
Next
From: Peter Eisentraut
Date:
Subject: Re: cpluspluscheck vs ICU again