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 1qeHov-006Naw-6o for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Sep 2023 16:25:29 +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 1qeHot-0038QG-FX for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Sep 2023 16:25:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qeHot-0038Q0-6F for pgsql-bugs@lists.postgresql.org; Thu, 07 Sep 2023 16:25:26 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qeHop-003htV-AV for pgsql-bugs@lists.postgresql.org; Thu, 07 Sep 2023 16:25:26 +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 387GPLBp1716617; Thu, 7 Sep 2023 12:25:21 -0400 From: Tom Lane To: nikolay@samokhvalov.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18094: max max_connections cannot be set In-reply-to: <18094-884970cc4c015d42@postgresql.org> References: <18094-884970cc4c015d42@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 07 Sep 2023 15:56:33 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1716615.1694103921.1@sss.pgh.pa.us> Date: Thu, 07 Sep 2023 12:25:21 -0400 Message-ID: <1716616.1694103921@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > Expectation for max max_connections is 262143 in PG14, but it cannot be > achieved: Why do you think that's the maximum? If you are looking at MAX_BACKENDS, that is not a limit on max_connections. It is a limit on max_connections + autovacuum_max_workers + 1 + max_worker_processes + max_wal_senders; cf check_max_connections. regards, tom lane