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 1nFdVy-0000wS-4o for pgsql-general@arkaria.postgresql.org; Thu, 03 Feb 2022 14:55:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nFdVx-0007XJ-37 for pgsql-general@arkaria.postgresql.org; Thu, 03 Feb 2022 14:55:13 +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 1nFdVw-0007X9-Or for pgsql-general@lists.postgresql.org; Thu, 03 Feb 2022 14:55:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFdVu-0006MP-Jz for pgsql-general@lists.postgresql.org; Thu, 03 Feb 2022 14:55:11 +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 213Et9RN252828; Thu, 3 Feb 2022 09:55:09 -0500 From: Tom Lane To: Julien Rouhaud cc: Bharath Rupireddy , Luca Ferrari , pgsql-general Subject: Re: max_connections different between primary and standby: is it possible? In-reply-to: <20220203141937.adnbceyimpj44d6l@jrouhaud> References: <20220203094727.w3ca3sukfu5xu7hk@jrouhaud> <20220203141937.adnbceyimpj44d6l@jrouhaud> Comments: In-reply-to Julien Rouhaud message dated "Thu, 03 Feb 2022 22:19:37 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <252826.1643900109.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Feb 2022 09:55:09 -0500 Message-ID: <252827.1643900109@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Julien Rouhaud writes: > On Thu, Feb 03, 2022 at 05:39:57PM +0530, Bharath Rupireddy wrote: >> ... Instead, it would be better >> if the server emits a single log with all the insufficient >> parameters(max_connections, max_worker_processes, max_wal_senders, >> max_prepared_transactions and max_locks_per_transaction) values and >> crashes FATALly. The users can look at the logs at once, set all the > Sure, but one failed start / inspect logs / modify configuration / start= will > always by longer than just reading the docs and making sure that the > configuration is appropriate. It also won't help if you want to modify = the > settings on your primary and make sure that you won't have an incident o= n your > HA setup. I don't recall any field complaints, ever, about this behavior. So I'm skeptical that it's a place to expend effort. regards, tom lane