The documentations say: "Now start PostgreSQL and set the password for the database superuser postgres . The commands are to be performed as 'root' in the following code listing: Change 'trust' to 'password' for the localhost connections. <---- here " We shouldn't change 'trust' to 'password' here, because otherwise we are not able to do the first login. After logged in as localhost the first time, we have to set the password for the user postgres and then change 'trust' to 'password' for the local connection. Reproducible: Always I have setted the severity as major because without this step, we are not able to configure the server and log in.
You're only to make that change for localhost (host-type connections). The Unix Domain Socket (local-type) retains the trust method. The documentation is correct.