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 1oqi8c-0008O0-91 for pgsql-general@arkaria.postgresql.org; Thu, 03 Nov 2022 21:52:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oqi8b-00020o-6f for pgsql-general@arkaria.postgresql.org; Thu, 03 Nov 2022 21:52:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqi5J-0007UV-2f for pgsql-general@lists.postgresql.org; Thu, 03 Nov 2022 21:49:13 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oqi5G-0002DV-Cu for pgsql-general@lists.postgresql.org; Thu, 03 Nov 2022 21:49:11 +0000 Received: by mail-pj1-x102d.google.com with SMTP id h14so2902817pjv.4 for ; Thu, 03 Nov 2022 14:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yugabyte.com; s=google; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bPDvY12iEgywA9s8tT94N0Ygp2ldX9F1Ts18Zh4CZdQ=; b=dwak61h63fK68Vhv2ICEvwPdAXS76joayY9fX0ZzyBT/2RBJEzaQ+DEdCVZExwSo/I u5ihL5MfmGUihIVFnHhDUIsCCmNRBl+bqNksVrQn5oZ4NbqH36j/y+LntF51L29jCd8y G7tBstGllmg3x2IVvLy8AxWVwmPMdLbY1J5M4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bPDvY12iEgywA9s8tT94N0Ygp2ldX9F1Ts18Zh4CZdQ=; b=4fgBSBnYpE3f7V84o+ALzO7Ky6cG79wlOKz+AQa27dS4O6VaiVmRmzTzoNk02Z9UQ0 RMMSw5A30exkdci2biBxJHZbc9W5ZhjW4DkpX8/asFn77rtyHRTHJt1s/CPJ521VTTJF o+uEMPKSqCwY2Gmpx9Ml23f87ayjxmiIa/64+wx+CKkLupYi2bI3n1BuT4espHDzoJhx EYqutzriQi2JOy1w31T9Cs22AeD1TKq2dJrd9hTs5Pr8WNfGcDgCIurVfHgXucWN9azk 81ICNmsWCEWj55RjKzrJIlwXCD470akXB51qTm9YpXEErVnV/dQGlogbbYlkRuA9mSLt b9qg== X-Gm-Message-State: ACrzQf0Icl1F+nPAwF5gmFMPRVb/pfAAQDCXmz6mE6L4m0/2wqAkNCzD /a7AtdZ7z3+KOYwWS/dkW+FVhw== X-Google-Smtp-Source: AMsMyM6CQYI8t9Xk8qKAlGtnSTuBdb7RkgGpRq6Y1YSet8xN7ohBIm8dOvPRmeYzdd9DHI9UTL50kA== X-Received: by 2002:a17:903:1250:b0:185:40c6:3c2c with SMTP id u16-20020a170903125000b0018540c63c2cmr32087537plh.64.1667512149171; Thu, 03 Nov 2022 14:49:09 -0700 (PDT) Received: from smtpclient.apple ([2601:646:101:7fda:3cd6:2e71:9172:fdf1]) by smtp.gmail.com with ESMTPSA id f3-20020a170902f38300b0016c50179b1esm1130517ple.152.2022.11.03.14.49.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Nov 2022 14:49:07 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Putting the O/S user for "local" "peer" authentication in the "postgres" group vs chmod'ing the "pg*.conf" files to be readable by "all" From: Bryn Llewellyn In-Reply-To: Date: Thu, 3 Nov 2022 14:49:06 -0700 Cc: Adrian Klaver , pgsql-general list , "Peter J. Holzer" , laurenz.albe@cybertec.at, Karsten Hilbert Content-Transfer-Encoding: quoted-printable Message-Id: References: <5EDD4790-7982-4610-8371-9E7F9C7F960B@yugabyte.com> <4B667995-647F-48BB-94CC-22ADE19F0BFB@yugabyte.com> <3A027257-8C6C-444D-91CB-37D53CC0C817@yugabyte.com> To: "David G. Johnston" 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 > david.g.johnston@gmail.com wrote: >=20 > Some repetition of what Adrian just posted ahead... >=20 >> bryn@yugabyte.com wrote: >>=20 >> How can it be that the PG doc itself leads you by the hand to a = regime where you need to use undocumented features? >=20 > The documentation tries to make clear that if you use third-party = packaging to install PostgreSQL (which most people should) that the = documentation for the packaging should describe this layer where = PostgreSQL and the operating system intersect. You even quoted it: = "follow the instructions for the specific platform.", though reading = that now I think something along the lines of: >=20 > "Additionally, while reading the next chapter, Server Setup and = Operation, is recommended if you are using a binary package the setup = and operational environment it creates is likely to be somewhat = different than what is described in this documentation. Please read the = documentation for the packages you install to learn how it behaves and = what additional platform-specific features it provides." >=20 > Actually, not sure on the best approach here, since the Server Setup = chapter already says: >=20 > https://www.postgresql.org/docs/current/runtime.html >=20 > "The directions in this chapter assume that you are working with plain = PostgreSQL without any additional infrastructure, for example a copy = that you built from source according to the directions in the preceding = chapters. If you are working with a pre-packaged or vendor-supplied = version of PostgreSQL, it is likely that the packager has made special = provisions for installing and starting the database server according to = your system's conventions. Consult the package-level documentation for = details." >=20 > However, that appears below-the-fold after a decent sized table of = contents. >=20 > Changing anything now feels like an over-reaction to a single = incident, but I sympathize with the general confusion all this causes, = and the fact it is only in the recent past that we've made this first = attempt to rectify the situation by adding these comments. A = second-pass based upon this encounter seems at least reasonable. = Whether I or others end up deciding it is worth proposing a patch = remains to be seen. Thanks for your explanations, David. I believe that my point about how = all this seems to me is well taken. I might concede that the = Debian/Ubuntu packaging provides adequate reference doc by implementing = its "man" pages. But I haven't found anything like a user guide that = explains *why* ordinarily documented PG features have been hidden from = sight (but not removed) and how (if the Debian/Ubuntu alternatives are = just wrappers for the native PG) one might do that wrapping by hand. = Doing this would demonstrate what benefits the wrapping brings. Anyway, I now have a working PG system and useful notes. When, = presently, I make a second VM for PG 15 (I prefer separate VMs over = having both versions in the same VM) it should all go quickly and = smoothly. I have no reason to describe to anybody else how to install and = configure PG=E2=80=94and I certainly won't do this. My interest in being able to re-establish the pristine cluster starting = state reliably and quickly is to support my own productivity. I'll = presently have SQL scripts that establish the "multitenancy by = self-imposed discipline" scheme that I've referred to from any arbitrary = state of population of a cluster. I don't intend my scheme to co-exist = with other schemes. And I don't expect there to be any real use cases = for starting with an arbitrarily populated cluster and taking it to a = state that conforms with my scheme. Rather, all this is about = demonstrating how to establish the scheme on the assumption (but not = requirement) that one starts with a brand-new cluster that will be = dedicated to the approach that I've sketched. I'm looking forward to returning to that project and putting all that = we've been discussing here behind me.