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 1qebz2-007GPI-97 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Sep 2023 13:57:16 +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 1qebz1-00AsQL-5s for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Sep 2023 13:57:14 +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 1qebz0-00AsQB-TL for pgsql-bugs@lists.postgresql.org; Fri, 08 Sep 2023 13:57:14 +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 1qebyt-003tx0-4o for pgsql-bugs@lists.postgresql.org; Fri, 08 Sep 2023 13:57:14 +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 388Dv5tH1872109; Fri, 8 Sep 2023 09:57:05 -0400 From: Tom Lane To: "David G. Johnston" cc: Nikolay Samokhvalov , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18094: max max_connections cannot be set In-reply-to: References: <18094-884970cc4c015d42@postgresql.org> <1716616.1694103921@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Thu, 07 Sep 2023 21:55:31 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1872107.1694181425.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 08 Sep 2023 09:57:05 -0400 Message-ID: <1872108.1694181425@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Thu, Sep 7, 2023 at 9:25=E2=80=AFPM Nikolay Samokhvalov > wrote: >> nik=3D# select max_val from pg_settings where name =3D 'max_connections= '; >> max_val >> --------- >> 262143 >> (1 row) >> = >> -- here is why > Glossed right over that...yeah, quite a few settings seem to have a max_= val > of "unsigned numeric", I'd be curious whether they all have some > non-datatype maximum recognized during runtime that pg_settings is unabl= e > to see. Yeah, there are for example plenty of entries with max_val of INT_MAX, but that doesn't necessarily mean you can set them that high. The max_val is *a* constraint, it's not the *only* constraint. regards, tom lane