Re: docs are incomplete or wrong...

From: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
To: josersleal(dot)it(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: docs are incomplete or wrong...
Date: 2024-12-18 11:58:11
Message-ID: CAB8KJ=jo+pAsB3=gT5ZPYY0foxX-CYx+TdXsYQaiX2r=ephY6Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

2024年12月18日(水) 18:58 PG Doc comments form <noreply(at)postgresql(dot)org>:
>
> 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.

If you read a bit further down that page, it tells you how to deal
with that kind of error:

> Another response could be this:
> createdb: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: FATAL: role "joe" does not exist

Specifically it says:

> You will need to become the operating system user under which PostgreSQL
> was installed (usually postgres) to create the first user account.

Regards

Ian Barwick

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message David G. Johnston 2024-12-18 13:33:22 Re: docs are incomplete or wrong...
Previous Message Tomas Vondra 2024-12-17 14:52:25 Re: Parallel index build for BRIN