The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/17/tutorial-createdb.html Description:
Folowing the online docs @ https://www.postgresql.org/docs/17/tutorial-createdb.html it says: "To create a new database, in this example named mydb, you use the following command: $ createdb mydb" When performing it error comes: "createdb: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist" No matter what explanation there is for it, this is supposed to be official documentation. It MUST be right.