Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uwSTn-002Yar-Po for pgsql-admin@arkaria.postgresql.org; Wed, 10 Sep 2025 21:35:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uwSTm-003eIr-02 for pgsql-admin@arkaria.postgresql.org; Wed, 10 Sep 2025 21:35:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uwSTl-003eIj-K6 for pgsql-admin@lists.postgresql.org; Wed, 10 Sep 2025 21:35:50 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uwSTk-001jPJ-1J for pgsql-admin@lists.postgresql.org; Wed, 10 Sep 2025 21:35:49 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-45df656889cso385825e9.1 for ; Wed, 10 Sep 2025 14:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1757540147; x=1758144947; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=yWcxUEpX1FSutzKyJSlIHTYPrBobVGbwxWxlp3VMUUk=; b=ipt/CH7dx1oHYJ5sI1H378rQAUplItPXoDXBlBcvLz2VVdZlpOIeOCm48nGppgpBgp Lai6hUgT5uRJlCDrW6nwHZzeChPHf81FpsifM0cg8jICKhNsF9pjcOJhVBU5BE8l+fGZ sewOm+QOHT8cP7MTHghOslvWyIcofjvbbOv8+Il4Z+tdYo8Kvl7w08uVz930V9rzZckZ Mx4AHBuVqGhcJO8wrCjUH2u8BatyU1/NscNLCMYlVnIwEu/QcdbLsfuP/Hb3nRegnMb9 5XorOQFSxSebVy3vJZZQWbxCIeZIw2sLIqasuwMsNcmINXr9oKfb4XhF/23W5wDRxa7h LWGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757540147; x=1758144947; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yWcxUEpX1FSutzKyJSlIHTYPrBobVGbwxWxlp3VMUUk=; b=KqsJztrC+r13KzHzu/86743ZMAnKPgi/GVvZ65Rwo/DYJF6qhK3xnGZ0x86eo3o8UR qeiDZN5qJm/2syCoETQFjn+8LvMdEAu2kiNaqU801wMSAOWIEZfzKEc+gV1M5hf+OY6+ 2vMQf4fF9UvLSg9k96nzxMv5rw+E6wfjiw1rZw4Hesvm8wUnGlPL2oezWYXm0IH2o2tC iksXrxICcfs8aeUmpAdh6ynP5Dqk/Cc4CDEyHiFnz1GiFxUOatoQi+QXZMXONj5ovOSG 54Ma8p7Gk36BOpUQJVxzBOQ6nRocQnpHb3qZ5kSka6c/xSAr+QrjNVDJ50wUiauywJtd s13w== X-Gm-Message-State: AOJu0YzRELcFZQ28drzDLOTxryHyrWvtfJuVu08eU2wvGxWPKPGnJexn gmDQ+/0NRd25SRzMtUy6oA9oThQ0P7Y+HdVBJzrABdrdXSltUCjhWz+XUwnnYK93Nqg= X-Gm-Gg: ASbGncvFAB1hDLIVrakY2KajosTgGWkMWHW43LKfCUC+aL1GalDCPlAsdojgISWE+LR 6ztALQAzr2t+viSO8PNQ27Xva+dlvmc1Nw+zcQcYnxSbbo+lGFu0u29WDxm+umfLwJyLLnvbpZ1 ludSuECT00Wlhwft5vG9OfJ7iXnCiLpNWwWborEVuLPA44ViiSTJNI9HNRkJQxWhcDZ/dmjY16N LKDNcOHqETwmj7yOPt94AK/QZlPY8fGJOiKa6ARyxQp2yb0GlZ96SAdaLjuGNzSlgrGFC5parEY EKgPgCim5W2X5/+azZQ1EsmyEIUrDouOPFiACDcm9TM8MdTRb/QMiokEW4riQT6CvDwN0Q+SOj7 MRuwBqjI8D0Erne1aL6RX5pt+SicSyhn0UKwhN59gqVIbVDgnNRQs X-Google-Smtp-Source: AGHT+IE3f8rwaCPMHUm9dze8tCR8rlZncrBJZnO5wgULNJzeUVtByWvHc7L/sUSCvF1MQju9w3k9WQ== X-Received: by 2002:a05:600c:45c9:b0:45d:2ac9:4240 with SMTP id 5b1f17b1804b1-45dddecd808mr180266705e9.17.1757540146768; Wed, 10 Sep 2025 14:35:46 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:255:30a:2403:9037:2d08:c2c]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45e017c1dd3sm1037435e9.2.2025.09.10.14.35.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Sep 2025 14:35:46 -0700 (PDT) Message-ID: Subject: Re: values of column source in pg_settings From: Laurenz Albe To: "David G. Johnston" , "msalais@msym.fr" Cc: "pgsql-admin@lists.postgresql.org" Date: Wed, 10 Sep 2025 23:35:45 +0200 In-Reply-To: References: <04f101dc2288$121b2de0$365189a0$@msym.fr> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2025-09-10 at 12:39 -0700, David G. Johnston wrote: > > postgres# select name, source from pg_settings where source like 'envir= on%'; > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 name=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0source=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=20 > > -----------------+---------------------- > > =C2=A0max_stack_depth | environment variable > > =C2=A0 > > What is the meaning of =E2=80=98environment_variable=E2=80=99 here? >=20 > Operating system and/or shell variable.=C2=A0 Established in the parent p= rocess=E2=80=99s environment before starting the server. Almost. "src/backend/utils/misc/guc.c" has this comment: /* * rlimit isn't exactly an "environment variable", but it behaves about * the same. If we can identify the platform stack depth rlimit, incre= ase * default stack depth setting up to whatever is safe (but at most 2MB)= . * Report the value's source as PGC_S_DYNAMIC_DEFAULT if it's 2MB, or a= s * PGC_S_ENV_VAR if it's reflecting the rlimit limit. */ Looking at the code, you seem to get "environment variable" if "ulimit -s" is less than 2560 and "default" when it is bigger... Yours, Laurenz Albe