Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ooDEz-0002ee-F0 for pgsql-general@arkaria.postgresql.org; Fri, 28 Oct 2022 00:28:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ooDEy-0005HV-9c for pgsql-general@arkaria.postgresql.org; Fri, 28 Oct 2022 00:28:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ooDEx-0005HM-Ub for pgsql-general@lists.postgresql.org; Fri, 28 Oct 2022 00:28:51 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ooDEv-0007J5-JM for pgsql-general@lists.postgresql.org; Fri, 28 Oct 2022 00:28:51 +0000 Received: by mail-pg1-x529.google.com with SMTP id r18so3351786pgr.12 for ; Thu, 27 Oct 2022 17:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yugabyte.com; s=google; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=OcoYykGNetyjMh6WoRN0Txcr9EpmPbyxg5KXejsNK6o=; b=CtUIybOx+p/PHGp64GTuddyWrY28IFff98WB17ag0eSH2B5Y7QmSMVy8R9twHimwCn jQvOt7OZaDIrytGGcxXTsMrmVcFyYyTpRqhIuKnHlHEtSzytQcIPT+Ss/7xrR3x4Gey1 xycNVFcR1lbit9ZvaAoVT55RiI/mqDEmq7zyQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OcoYykGNetyjMh6WoRN0Txcr9EpmPbyxg5KXejsNK6o=; b=BBQHGDR6+39/MrzTCt8u16288a2csy0pdAH2p16dNSgv2LG+yWwDRnFi99/J5/hwqZ p4dyqMtsZzu0empRMXwggiYf51sBVCcJL1sDIryo35CJyNnA15BujFG3Fz2ozQPx/T5G nQdYxkF6elYt4+xGV+M2ZGZLfTgoDBFyx9siKF4ZcwzTHUHob61m4DhGLeDZmnpEHlKq 3aj/t/CBV6wzAlHzKdKw7SdKBVcK6z3JZhtbdZkwiGOpaxkqtN6mPo0QONt45cSBSWMY Jfh9TBa3+oIbz7uHpic/TDRw5Tvl32b7jBIS/ISVXA5rsi/gIYBS4NCx8sSkGIxG7ud1 gK0A== X-Gm-Message-State: ACrzQf19cOK63hgjheX2y/2M67IUtgOd3plrtycQeQVmRhElVOJNf5FS KFAg33Psae2VTkvkfSZuSECGdA== X-Google-Smtp-Source: AMsMyM42aKI43LWbhRPMTTtoZDUljOLNBRw7LANfhNRC8vB5fSbJWIyUW5COWBZ5o+X4cKRE988V6w== X-Received: by 2002:aa7:8607:0:b0:53b:13b5:2b6a with SMTP id p7-20020aa78607000000b0053b13b52b6amr52339449pfn.52.1666916927499; Thu, 27 Oct 2022 17:28:47 -0700 (PDT) Received: from smtpclient.apple ([2601:646:101:7fda:1041:6565:1167:fbd9]) by smtp.gmail.com with ESMTPSA id w134-20020a62828c000000b0056c3d3f5a8dsm1717994pfd.56.2022.10.27.17.28.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Oct 2022 17:28:47 -0700 (PDT) From: Bryn Llewellyn Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_322F789E-E291-4043-A6FE-BC7262917519" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: =?utf-8?Q?Re=3A_Seeking_the_correct_term_of_art_for_the_=28unique?= =?utf-8?Q?=29_role_that_is_usually_called_=22postgres=22=E2=80=94and_the_?= =?utf-8?Q?mental_model_that_underlies_it_all?= Date: Thu, 27 Oct 2022 17:28:45 -0700 In-Reply-To: Cc: Ian Lawrence Barwick , pgsql-general list To: "David G. Johnston" References: <8A2C8B1B-470B-42F9-9694-C1EDDAC06266@yugabyte.com> <5C47A318-F265-4A64-B306-C4019F499DB8@yugabyte.com> X-Mailer: Apple Mail (2.3654.120.0.1.13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_322F789E-E291-4043-A6FE-BC7262917519 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > david.g.johnston@gmail.com> wrote: >=20 >> bryn@yugabyte.com wrote: >>=20 >> This invariant must hold if an "ordinary" within-cluster superuser = is to qualify as the cluster's "bootstrap superuser": >>=20 >> the name of the bootstrap superuser's within-cluster role >>=20 >> AND >>=20 >> the name of the O/S user that owns lots of (but not all*) the = software files that define the PostgreSQL RDBMS, together with the = various files that represent what users create >>=20 >> are identical. >=20 > Nope, the name of the bootstrap user is the one supplied to initdb via = the --username argument. Period. It need not match any name on the host = operating system and it will still be the bootstrap superuser's role = name. >=20 > Yes, the description for --username probably should be modified to = read: >=20 > "Selects the user name of the cluster's bootstrap superuser." Or just = consider a "cluster superuser" the term d'art...since most people would = just refer to any old role having superuser authorization as being plain = ole "superuser". The fact that is says "database superuser" is the same = holdover effect as the fact that "init db" means "init database" even = though it actually initializes a cluster. Thanks again, David. And once again, all is clear now. --Apple-Mail=_322F789E-E291-4043-A6FE-BC7262917519 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
This invariant must hold if an "ordinary" = within-cluster  superuser is to qualify as the cluster's "bootstrap = superuser":

the name of the = bootstrap superuser's within-cluster role

AND

the name of the O/S user that owns lots of (but not all*) the = software files that define the PostgreSQL RDBMS, together with the = various files that represent what users create

are = identical.

Nope, the name of the bootstrap user is the one supplied to = initdb via the --username argument.  Period. It need not match = any name on the host operating system and it will still be the bootstrap = superuser's role name.

Yes, the description = for --username probably should be modified to read:

"Selects the user name of the cluster's bootstrap superuser." = Or just consider a "cluster superuser" the term d'art...since most = people would just refer to any old role having superuser authorization = as being plain ole "superuser".  The fact that is says = "database superuser" is the same holdover effect as the fact that "init = db" means "init database" even though it actually initializes a = cluster.

Thanks again, David. And once again, all is clear = now.

= --Apple-Mail=_322F789E-E291-4043-A6FE-BC7262917519--