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 1waX9j-001s8d-2Q for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jun 2026 11:13:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1waX9g-00FjPu-1F for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jun 2026 11:13:00 +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 1waX9f-00FjPm-1D for pgsql-hackers@lists.postgresql.org; Fri, 19 Jun 2026 11:12:59 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1waX9d-0000000184J-0bSW for pgsql-hackers@postgresql.org; Fri, 19 Jun 2026 11:12:58 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 0815114000E8; Fri, 19 Jun 2026 07:12:55 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Fri, 19 Jun 2026 07:12:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1781867575; x=1781953975; bh=7m4RCQGB/1 kx8pTkJWoBTHEQVOPyhe49NVlzDkTQXWw=; b=sF6jDgTywzyuWnGHRec4VnJ5QS k9807a/Fnk3pP+pd0ebakBhvh3gUxIsRX9JAZFCAgQU7gjEKWq3HbyYTt2W6rWQ+ b2IxFBhTSNI5/OlZ06AAYcuIxkY8J/uzRu/1gxiCa8L1K3zdphXUXx5lN1VOqeaD +6dLuVuJSyzP0sPAwAOlwoYlMEBAoJ3juWnD9vYw6UqEKlQbqgoPxLDiWvWoZJDt +wriMeoVgNQwBxI17QhStYAFFtHA33yDolCiKeaOb6euJzt+R9BgdlinSwtrNXKM wBew6INFkDAVJPJFWw3//tu5HgWwHV8Xirke0EhuuF0LQLHCC/k8ckWN/tug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1781867575; x=1781953975; bh=7m4RCQGB/1kx8pTkJWoBTHEQVOPyhe49NVl zDkTQXWw=; b=iLK1sZ9awBURsT5E5jqFZ4Zj7hJXn/903uqxA6lBQwF5NAnZgqm igxGTzjJLEAS011fe0qv9zYGEJekcYolJCLHiTRMO3O9LwJa/ibBEE0Qa65t589b aQTY9wOGVFVisoB13DNLZlnhuwGRE0WUxLd4V7FmLuki7aSXnPhmD6beST3ZqIHL bwj9o4+cH/7+plPkr8fHHDcBZ0wspEQOfNdz0iQdXsyBZzpy5vEPzqfUMkUKx4dA oJDjI6M3y5M8sqX4nh49omnWSw0u4PFBHYGUcN1V/6vy4nX86Zwt5WYM989d+i0T VEEkXAjMwjCWTW3iJCY45jkHMDkuaOBInOQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEEgmR4RmCjoTQpDVFpCrtt/CkHdyMBt42shxLSPsruX3lSm42nPkubccY2OVJSV3 0deAqJxMuLIJoJ84OV79GFlP+zVwicAbgnd5UaMHI0a28tRAGhONoI7s0UdKRL9GD4xnrW k2iFPa+vUcXHyS+e2CGi+Yc5xnBwjKPplVOmG00pd8X4+XAyUSi9uIqAAaD9sBahSw/JJV +HeY9K5I0l2XKNfMeUJXfubsj93hVFRb7pKPBKW/wHkghV+CTeu+UmdjEwkyGaodnEnJYe eLodayB/y3Xk6iU3UJ23JNHD+XUKi5XKZjd4zzq7UrlA65en0i3o9bZMoYbxE3Hgj949Sp 57afDvSiTMk4P80SOTCOgDW1Df98aiWvQhHjebb12u1WKhB00Hh3ESKpkujL1km46Bz92H E9aFhKz+lb0/zecCWysQJGC6G0u1+Epodytx9rICG0RLhI+hnju5Tgm/9e0VWPTg+0emro FHFgO3KV+4lnBTy8tb/XLhoNeDyV6omOakpHFFoPIZqHxgeFrmOAP7bGql/V0cLf+Lt7HN zSYQLXxvu0JOnyKFTmaaIx8C6V0/VnN6+tR7Ca5pVYc3pMpN7R1Nh34YnR91cMrgMQIzLR e4CxhWATUynKhy+uS3kE/1s71+1T7PWJCfSsKAOSTynYX3mWkGcIa5hgOHRQ X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 Jun 2026 07:12:53 -0400 (EDT) Date: Fri, 19 Jun 2026 20:12:47 +0900 From: Michael Paquier To: Matthias van de Meent Cc: Alexander Lakhin , pgsql-hackers Subject: Re: Unexpected behavior after OOM errors Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Knjz/oKXKCjqk2Fd" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Knjz/oKXKCjqk2Fd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 19, 2026 at 09:18:03AM +0200, Matthias van de Meent wrote: > On Fri, 19 Jun 2026 at 01:55, Michael Paquier wrote: >> We don't ERROR when failing to register a syscache/relcache callback, >> we FATAL if we reach one of the thresholds. >=20 > Ah, thanks for correcting me. I'm not sure why I had ERROR in mind, > but you're obviously correct. Your patch v2 LGTM. Cool, thanks. >> Reaching these thresholds >> points to me to a programming error anyway, so these should not matter >> in the field. >=20 > I don't think that's (necessarily) correct. These callbacks are > accessible to extensions, and if you load sufficiently many of those > you could still run out of slots even if each extension stayed well > within a reasonable threshold. Sure, but then the only way to get out of the problem is to patch the backend so there are more slots available. At the end, when it comes to core (and there should be some margin anyway), I am not really worried. -- Michael --Knjz/oKXKCjqk2Fd Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmo1JC8ACgkQnvQgOdby QH3ceBAAjzGjf3zDo/JST78YNfExF2UOvkeMrf1PT+zOvUbsxLtEMqu1iwWJn45E y9z2mtk1B4zQbHlJP51Yro9m5NIhiwCQqWKBR0WZURy4sxjz9/dYLHgDmGDHnx2a xzEjMyVqXt0LEFdrIP5aUzNLCUZsx8pTJQSvI4SdjD9IaLKZHoj8PfEKcovgYJnZ lnotftUexgLZBLEdQH9E9thXRS7yWgIR+YbEJg58u4JPOQHXYMrjUAbmSOpNK2zr Agc+8WbER6H3mEac7fSidwP/tFtUDklFBPkELK7OrAcULn6QCkE/on0ng/DvTidQ wzi0y5dOZ4VD6ByXzvVTvF7yBUoFIDP2Kl+N5AvdmQwTlz18rqjknDU4luQprYi9 Qs2xdKEyrOYLmqFg8/FMD1TqKUsOvRovXwXgBpJicZ+xLrnXOp2BuGBj2lLnvp3m P4Zrf0nz0PRrDlgrTOqY4mbEIqJsizJY02XyZIIEGrz8mOxz36q23v7R63x4r++d MPWauKO+ZhEqxeE+ecmUoluevFGXNvN1Va7/1R/4hW1FXz0SRE10ghBeqep+oIat DOMA/Be82Ak9jy9dhm2YBIzhNGI8udZHN0B9KX4WlgmxZ1/tvDF3VuEPm0l+2CgL ppwzATZ6Dw25NtloG/nKPhELXEUQg0RnxVnG9H2g6ROqfVRXX4A= =XsWN -----END PGP SIGNATURE----- --Knjz/oKXKCjqk2Fd--