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 1oef6P-0000LP-2N for pgsql-general@arkaria.postgresql.org; Sat, 01 Oct 2022 16:12:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oef6M-00012f-12 for pgsql-general@arkaria.postgresql.org; Sat, 01 Oct 2022 16:12:30 +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 1oef6L-00012J-M6 for pgsql-general@lists.postgresql.org; Sat, 01 Oct 2022 16:12:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oef6H-00045C-2r for pgsql-general@lists.postgresql.org; Sat, 01 Oct 2022 16:12:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 291GCFpl936583; Sat, 1 Oct 2022 12:12:16 -0400 From: Tom Lane To: "Peter J. Holzer" cc: pgsql-general@lists.postgresql.org Subject: Re: Names of run-time configuration parameters (was: Limiting the operations that client-side code can perform upon its database backend's artifacts) In-reply-to: <20221001124229.4a3q4peqzynz6cd6@hjp.at> References: <20220928011353.zo7enlnig5vvpowe@jrouhaud> <5B23D9B8-56E8-458F-AD3D-B5F88AAB2844@yugabyte.com> <20220928025427.coznr3we5plyq5pp@jrouhaud> <3881881.1664337639@sss.pgh.pa.us> <20220930184515.mw2avsox5daz6yok@hjp.at> <35254B0B-6501-4CF6-A13F-76D03756C2B2@yugabyte.com> <20221001120553.b7z7pujnmsllgn5b@hjp.at> <20221001122421.ja2vri66mvyrg5hm@jrouhaud> <20221001124229.4a3q4peqzynz6cd6@hjp.at> Comments: In-reply-to "Peter J. Holzer" message dated "Sat, 01 Oct 2022 14:42:29 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <936581.1664640735.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 01 Oct 2022 12:12:15 -0400 Message-ID: <936582.1664640735@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Peter J. Holzer" writes: > On 2022-10-01 20:24:21 +0800, Julien Rouhaud wrote: >> This is intentional, and documented at >> https://www.postgresql.org/docs/14/runtime-config-custom.html. > So it's there but hard to find (I did read the table of contents at > https://www.postgresql.org/docs/14/runtime-config.html but I guess after > all the subchapters about specific configuration parameters I didn't > notice the one generic subchapter near the end). > I think referring to that chapter from > https://www.postgresql.org/docs/14/sql-set.html and possibly other > places would help. Up to now, there's been an intentional policy of not documenting this very prominently, because doing so would encourage people to abuse such variables as application state variables. I say "abuse" because the code supporting such variables isn't really designed to support lots of them. There has been a patch in the works for a long time to provide a better mechanism for application state variables [1]. Separately, I did some work recently towards alleviating the performance problems with lots of custom parameters [2]. It appears from the discussion in [2] that we're probably going to stick to the policy of not encouraging use of custom parameters as application state, although if [1] keeps failing to land maybe that will change? regards, tom lane [1] https://www.postgresql.org/message-id/flat/CAFj8pRD053CY_N4=3D6SvPe7ke= 6xPbh=3DK50LUAOwjC3jm8Me9Obg@mail.gmail.com [2] https://www.postgresql.org/message-id/flat/2982579.1662416866@sss.pgh.= pa.us