Re: Seeming contradiction in 22.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: maja zaloznik <maja(dot)zaloznik(at)gmail(dot)com>, "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: Seeming contradiction in 22.1
Date: 2023-03-23 15:09:21
Message-ID: 1821386.1679584161@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> The root issue, IMO, is that all packagers have settled on the convention
> of using Postgres for the superuser name, so if one only ever sees that, it
> is easy to assume it is some kind of default of the software itself. In
> the face of consistent evidence, people not reading the documentation is my
> supposed assumption for their ignorance of this point. But reading the
> docs, it is clear how the system really works (I.e., the name of the
> bootstrap superuser comes is derived at initdb time from the environment
> executing initdb).

I agree that the docs are not incorrect as they stand, but maybe they
could be phrased a little more clearly. The "Customarily," bit is perhaps
too terse. I'm thinking about wording like

This role is always a “superuser”, and by default it will have the
same name as the operating system user that initialized the database
cluster, unless another name is specified while running initdb.
It is common, but not required, to arrange for this role to be named
postgres.

regards, tom lane

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Siddharth Jain 2023-03-23 15:46:38 Re: Publishing Postgres Manual as a book
Previous Message Steve Atkins 2023-03-23 13:33:13 Certificate authentication docs in multiple places