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.96) (envelope-from ) id 1vx7IJ-00GCw5-1B for pgsql-admin@arkaria.postgresql.org; Mon, 02 Mar 2026 17:42:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vx7IG-0025ut-1o for pgsql-admin@arkaria.postgresql.org; Mon, 02 Mar 2026 17:42:57 +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.96) (envelope-from ) id 1vx7IG-0025uk-0d for pgsql-admin@lists.postgresql.org; Mon, 02 Mar 2026 17:42:56 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vx7IE-000000003Go-2cD9 for pgsql-admin@lists.postgresql.org; Mon, 02 Mar 2026 17:42:55 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4806ce0f97bso40953755e9.0 for ; Mon, 02 Mar 2026 09:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1772473373; x=1773078173; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=ZyVJfNbeNbA5FqrGfnvlknQZEUZAteGurguih6rwISs=; b=pCr2wlqjjiufrIXbWydGN1NUr+dl45+r6uBx3GxPvnbTM911ErmqBrs6Rp6VguVPV3 A+qAp/xPepmUVZLK+yfuG0EPsXZzev8VSytDL0kLplxJpo/2VmVz+LZq82cSxGYIndj3 brD2jc5xSPCy+FfutcCPCu/RlWzYoj0wMq6ETPPiNFSOcYRZzzmxY0d4tt5ZYRmFiKtF XD2YVzTEQNfnap6u4lAvaekgcFMBqwyLP4BBKrjcn/OiS3ts021YeGpIYySE7SPam8xo 2cU/CikR3h1fCnC2qCyskUojgwSs1Ec5q5gM6WhAZEsr65pNekKt5DLa6GPdpoOCSggC AHdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772473373; x=1773078173; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZyVJfNbeNbA5FqrGfnvlknQZEUZAteGurguih6rwISs=; b=qwEXo7KKJGmTcsGjl25YYik/K81Sekk1y1X7A+TjRzcY+5FiCiubTlhzSQdzE53uT9 tLL4RwDhmIGpEsLHdTzjlRcQ91hjEEURTqNfFG6lRMD6kMQmMp8CJSyXkVwrK6+UC2Wt k3J/2ApphfqjcwCCc6SCyuxu3gLVQgbzhp+Q05PjazoKAV8H8Qha6Rc1QGp6gaF90Qbl TqP/9K3YJ/dMMK840qxc37399HG6qXg/+b+RPqg5jH9AqDk9/Xby47DFFK6SaCpna2Cj c169PlDpZ4zxqoyw3a1wbJniu8VgykK2ZePnFIxkRF0z4wYSeEFB+AiSeomEjr08ISW/ Egqg== X-Forwarded-Encrypted: i=1; AJvYcCXpBKq+TpSFPwbUcZRRmlJezzZzfZczPIkfYDz1wpnZHtSxB9eJS/CLaOYWz4qSFyIkqO8ko/HvU7zKSw==@lists.postgresql.org X-Gm-Message-State: AOJu0YwoyzS4bUx4G5zsXRYjBK/TiNKKtgUzohG1LgUCwicLcB0OmU1f XoQ0X8Qgqcoo9cptayFZjV6mJrA0C+DxUHMZLxlscualllUzPIPJlYhv9eZmolHrIDk= X-Gm-Gg: ATEYQzwp2QOHqQLMndzcdUi3Ywph27zftQywVPq44CotwfE5WymNZJ2R50mWdyhchk2 y7QdyuATavdhFqAbSgTgk2hobh+KUamSGu3qOBHkDW1zoJEZdYCc6dWk+bZT2AKGeIh5mcqRrPT N/RNdUOcFGgSQIjIm6jEOxgY26gX4tR1EDgoGb33S2SgTu7cFRgutOLsOGRJjjneX4FWMfFzvUF vhGFJRw9nj53iQ9CKtPR/IqU18TAZu5hi9/YKdCWfDYMackwqIF4l6pCgN+SPjI+LJmRn0tibO+ ghfLOh9Vd0eJvuNxds2uj7nOUBEnIO05yZbmiScfBM3FhEtl5NN9bdzAMT2DCJK1NJOLI2PalIK YtAEweiU+EhBJqGpnun5sdJGrkpZBH6bIO39fktotoXZ/wzqtB6DBQVk0sIvOKHaPF352PhUX60 Qo6MIhtqkiDrJ3y7PrTYmD9ywcOBPtoBZD0DPPxFmBlc1lub0Ao6lCSA== X-Received: by 2002:a05:600c:4eca:b0:480:1e9e:f9b with SMTP id 5b1f17b1804b1-483c9beac6cmr251997085e9.16.1772473373081; Mon, 02 Mar 2026 09:42:53 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:260:9a22:3bc1:c5c4:d502:b765]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483bfb987b0sm133731685e9.13.2026.03.02.09.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2026 09:42:52 -0800 (PST) Message-ID: Subject: Re: problem during postgres restore: max_connections = 100 is a lower setting than on the primary server, where its value was 350 From: Laurenz Albe To: Fabrice Chapuis , Pgsql-admin Date: Mon, 02 Mar 2026 18:42:52 +0100 In-Reply-To: References: <44166282b3516f33696f025ad9f5271244f78107.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2026-03-02 at 17:13 +0100, Fabrice Chapuis wrote: > I think the value of max_connections must be aligned with primary because > the goal is to maintain this sizing in case of a failover and promotion o= f the standby. Not every standby is for failover. The technical reason is that the process array on the standby has to be at = least as big as on the primary (if you are setting "hot_standby =3D on"). > Why to be conservative with `max_connection` and not with shared buffer? > If we're performing recovery on a machine with significantly fewer CPU an= d RAM > resources than the original server, lowering these parameters could be an= option > because they reserve memory at starting. Perhaps, but you cannot do it. If that is a requirement, use a connection = pool. Yours, Laurenz Albe