pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
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)
Date: Sat, 01 Oct 2022 12:12:15 -0400
Message-ID: <936582.1664640735@sss.pgh.pa.us> (raw)
In-Reply-To: <20221001124229.4a3q4peqzynz6cd6@hjp.at>
References: <20220928011353.zo7enlnig5vvpowe@jrouhaud>
	<5B23D9B8-56E8-458F-AD3D-B5F88AAB2844@yugabyte.com>
	<20220928025427.coznr3we5plyq5pp@jrouhaud>
	<C1704EC1-487A-4BB0-8301-2530E97F04AA@yugabyte.com>
	<3881881.1664337639@sss.pgh.pa.us>
	<F0A23614-749D-4A89-84C5-119D4000F9FE@yugabyte.com>
	<20220930184515.mw2avsox5daz6yok@hjp.at>
	<35254B0B-6501-4CF6-A13F-76D03756C2B2@yugabyte.com>
	<20221001120553.b7z7pujnmsllgn5b@hjp.at>
	<20221001122421.ja2vri66mvyrg5hm@jrouhaud>
	<20221001124229.4a3q4peqzynz6cd6@hjp.at>

"Peter J. Holzer" <hjp-pgsql@hjp.at> 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=6SvPe7ke6xPbh=K50LUAOwjC3jm8Me9Obg@mail....
[2] https://www.postgresql.org/message-id/flat/2982579.1662416866@sss.pgh.pa.us





view thread (8+ messages)  latest in thread

Message-ID: <936582.1664640735@sss.pgh.pa.us>
Permalink:  ../936582.1664640735@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/936582.1664640735@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hjp-pgsql@hjp.at
  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: <936582.1664640735@sss.pgh.pa.us>
  References: <20220928011353.zo7enlnig5vvpowe@jrouhaud> <5B23D9B8-56E8-458F-AD3D-B5F88AAB2844@yugabyte.com> <20220928025427.coznr3we5plyq5pp@jrouhaud> <C1704EC1-487A-4BB0-8301-2530E97F04AA@yugabyte.com> <3881881.1664337639@sss.pgh.pa.us> <F0A23614-749D-4A89-84C5-119D4000F9FE@yugabyte.com> <20220930184515.mw2avsox5daz6yok@hjp.at> <35254B0B-6501-4CF6-A13F-76D03756C2B2@yugabyte.com> <20221001120553.b7z7pujnmsllgn5b@hjp.at> <20221001122421.ja2vri66mvyrg5hm@jrouhaud> <20221001124229.4a3q4peqzynz6cd6@hjp.at> <936582.1664640735@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox