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 1vx4O0-00DgfQ-2M for pgsql-admin@arkaria.postgresql.org; Mon, 02 Mar 2026 14:36:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vx4Nz-001LQb-0Z for pgsql-admin@arkaria.postgresql.org; Mon, 02 Mar 2026 14:36:39 +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.96) (envelope-from ) id 1vx4Ny-001LQS-2g for pgsql-admin@lists.postgresql.org; Mon, 02 Mar 2026 14:36:39 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vx4Nx-000000001pj-0Kss for pgsql-admin@lists.postgresql.org; Mon, 02 Mar 2026 14:36:39 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-439a90f194bso1460488f8f.0 for ; Mon, 02 Mar 2026 06:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1772462191; x=1773066991; 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=2oOO6HbD7FUNENjr1qk81KzLD+fRmT7RdQf8a3dVyh0=; b=supQ4n6pZx7pZ3VYHUpHey6Qkuvvt2mhcxxqPlUxtFqRLt4+20zNzxiDN1QBLtbm0r jZv6Ic2uzJly0c4IpyRpz9qWXsG90OnUDfA8JiG6zraIeKSwmne+KYWCnbgS2d+uRMoG qu2wD9/UgLgTE+DOyHrq95H6zxJXmcsGLHgSHqX506gLHup3zPMcPeO/zMAiw44yhVTX htnn3qUe7rnHi0NQ/hNaFBX1JJMe6kt6W6HK6stzmj6emIpbsaXIHKkvmwD2X2kHB7HK rV19lOg5nBa41vkk1qNDUeWvBCApPV5twiIkMoDGSVcOJ806yKB8SzKkPapTMAvCIckS VMqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772462191; x=1773066991; 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=2oOO6HbD7FUNENjr1qk81KzLD+fRmT7RdQf8a3dVyh0=; b=nK/ElaxPOVuZi4PSfbz8FIpnRw59B4yM+PoZnswNo8kWhCNAojRKRNZZ2yBDP+rQ33 hWk42DFRFY30S2eHI8auEZ+SbrQb4TJOjYorAeWPaaL5iThAVj9Q5uOABMoAYjie0TOy 3GZUbcf+yaffYdrhCPLCpsKgzYVr812/YLlIXSr65eYf55jo7YgxnPxEnMKCYHTtqAgL DjfTLhjUgfQxunOvdyruwwT+ZvRB/G0nE4jEQndNrbpY0KTKVya3KA+spEC8csQ2EUPA 5G9vNxSv6ILjCK6uvElmHYDN7q9BaePJmyePYGkPQXeP9rP8gvihmXGJcyhJUosMNvjl wdLg== X-Forwarded-Encrypted: i=1; AJvYcCW2XvJWkyMhtQ1h4S7F45VadCgbo4k12aXVrnTBePb7YSfT/sBgOwBADceuuuQZ/NTcFUYzjrzAw23Naw==@lists.postgresql.org X-Gm-Message-State: AOJu0Yz/qHTq3+0hzSHk60lXYiSRV1R001YcfBta+EPYe3zmuxL05iLI PskX5mwDcmWMCoKxVmKOSeIoEFEVAwKCTk9v7/TYaN7vySjEUbbYFuLaopC6Bb1fXSg= X-Gm-Gg: ATEYQzwCQHleYlMxFBsHcXKb6WQk8FYfzG9o/08wMgWOV60Vfbn4UxqIDi67kDmm4oU sHl+QunyFGicxB/dhEYWBs0Sx7LvLq+IJ4kO0oJpwFyF4AqTPIsoN9Nd+QMmUicqJ6BSwYfSCrV n+/znIv/prczpa2+eC98LU6wX4DQSfY1X2XdnH8qs27qkTQf8wC54xU7MfZGYPkKpY66mEDqsZz 4Dndab3qsk+AnpcCynkgOK6YN2aowG7Xq+y8oU3E4zNCCKZWGo9QPb3D+HQz3Tn9eDEzpWL0vKQ K74zF0UgsMMwcy+loxSx36F3y+5oG/qhto/Y0z3mjVOlwr+A0X6TviDWhVOj+nHP96LG8lTKX9X u124RjHpjvOJ+nZoVyNTbXxeVyjkrGSMriOeS55TTZctZjN4G3s/l4rYhGxeCL+uZzLHhYKdWqu RCh61iEWlJ0AT3zlnW4LX7s+UJHPoiJRqjSh2jIo8RAYLDstATinc= X-Received: by 2002:a5d:5f51:0:b0:439:b8b2:faca with SMTP id ffacd0b85a97d-439b8b2fbe0mr4822340f8f.16.1772462191012; Mon, 02 Mar 2026 06:36:31 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:70:b332:d53:f4c8:5267:7bfa]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4399c75a523sm27388059f8f.19.2026.03.02.06.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2026 06:36:30 -0800 (PST) Message-ID: <44166282b3516f33696f025ad9f5271244f78107.camel@cybertec.at> 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 15:36:30 +0100 In-Reply-To: References: 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 11:27 +0100, Fabrice Chapuis wrote: > I got this error from restoring a backup on a recovery machine. > I got error about the max_connections that I changed from 350 to 100. > in the control file the value is 350 > /usr/pgsql-17/bin/pg_controldata -D /pgdata/pgsql/17/main/ | grep max_con= n > max_connections setting: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= 350 > That is the value registered from the primary. But the primary is not int= ended to be connected during this restore. > primary_conninfo is desactivated. >=20 > Is there a trick to change decrease this value and start the instance. Why bother? Leave max_connections at 350. Yours, Laurenz Albe