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 1w70Ii-004rdY-3A for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Mar 2026 00:16:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w70If-0005jX-2e for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Mar 2026 00:16:14 +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 1w70If-0005jP-1q for pgsql-bugs@lists.postgresql.org; Mon, 30 Mar 2026 00:16:13 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w70Ie-00000001ifW-0gNR for pgsql-bugs@lists.postgresql.org; Mon, 30 Mar 2026 00:16:13 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-48704db565eso51862785e9.1 for ; Sun, 29 Mar 2026 17:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774829769; cv=none; d=google.com; s=arc-20240605; b=UO4NRTr+9KcS7xcP/gxfvU1HY4T9xmp3CnnIas3UmGuJRy6LzPI8P0aBGyNm8+0lTt EpNeWbrdX8nWvCXhBMX+I11WUQYjUwvzmkyJdZXAEGj9jGmzAxkd8NaDGzPLe+OBbBSE NYBqKRoTa1PbfaJTYP5E/b4Vq3ulAaeSXGv7MvbfdjQhU5J5qrTxUq3Q9okQf81lMEA0 9u9h3CYSAE9UmuEqgbQW7m5ivyTqNRI+qpKQsEhnuTC4RpUFcTIGfKKBOL1XfzrGbot2 wZolzFIpKuzUXwmlY9JLgVwXCK1Pxiiw6TAqzt8zZQQmg4GXrBHiGb9L8MjwMyivLspL uaGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=FA3m/NcYQPlRBolfQ21X6a3ZpVX8KgrPK5me7vSv2/Q=; fh=K52wB/A41JOp6PyuT/sd6xU1v7V/jLOPXum8H/c07QM=; b=f7EOZqUBPDkcBX9B4i5J7GPy8ffIKcQr130lcYS5gOi4SDLp0E+WTClTepAkoBOIkT EIo9+PVQX8489WLjQ4NUNlmPvadF6qLUfnOHswqB/AoRiSijeVvVtdQsRMJZsxZ2oDaO 8CCxIj82txf0nB2/DsyEjC1LJtnHFAyAGsMi5mNfcqsW47P2OfiehAwSR+/BQn8dsalY oGprenU5+7uEunFLsYnAahFoibwFzoHAmOxtH0DDkFII2pzTWwhuumljUPa1muBziUYt 4fThdSvYA4KXBlBF2x3yaP8IpMpeKlpRc61VvQwG4/FMWlMm7CO5F7G7f+CLTnghjgay yaWQ==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774829769; x=1775434569; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FA3m/NcYQPlRBolfQ21X6a3ZpVX8KgrPK5me7vSv2/Q=; b=fTweLQ2xuju1hN6iH3GCN5vyQhj0SfUOFfCfiWVj2kFV9LpIGFrWYR2v5Dk2+MfpbD 5nrR+O33b/F+mZYMrAM/T6owkNGDX5elmV8G8KmPHomW40J92HwWndUmn4Z4NYYWFrD2 /2cAr+9xC8Y03dxdkSnPLRyGkLEYL2TFBOtvB2zbl3EYYUVcmlOEFgPBwgkKnyFUiAdR ybtYoX2WnB9FKAK87PwVsArhgYRGKykd+us/wqJdN8lJhx9Kag+Yy7p4/KCdIHGHfhj9 sfIQb0DcpjA3L92PeyG5Q4azhRgB27zICvO/NRqBDR2G5b9dYp6cWSqaahVIghfXaD3D 4KLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774829769; x=1775434569; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FA3m/NcYQPlRBolfQ21X6a3ZpVX8KgrPK5me7vSv2/Q=; b=oSYFY5EakcwkummjtoDl3o0y4cbNyaJFSqG/GO46r5yMh9577t2S4lD+4A8ceaHJ05 nTJh2I0oKuACY4IxL5PJwQwy8qOylR2Jqvz3FzcXutzdNSdaSrOMuKOoFe6hIPXUssJk ihfFWOCDTadjduRtJ0WxWtN7FV5gm5YpKa5qvTJi6UKLecvBqUfaAznxr7w96/8nrAy/ XKj/8uLbCflGde4vN8wqcuSIlZwrOPL8sUkJfM0dudL5sGz61L8V7EGjGBAviTD03Yps AXE1qeEbTDybwJK0L3KZ0IWOZzd3xMcBX4oQV+E6jY8JE3Z/W5yut4xR73ixaNNiWfDN VC4w== X-Forwarded-Encrypted: i=1; AJvYcCVmLZKTRvI2OKJ3VwNzxQVpBbVqCdCLupVLh7ok+fjC6sBzUk4sfMEglio88axV5mqiHeVyZRTiyTy6@lists.postgresql.org X-Gm-Message-State: AOJu0Yypd6KxCYXgAFMHpCTkGH8Uy/LqBuOf5F9+si63xV5Sx2XwkeGG ZeqOXYl7c8W5EBG/jwE7eeTZABXSHdEjVLHLb+YLEGT5/3puJYvnTmclosLGfzCDDboKh2JYvAv uqUScWV4YFuqTXVGIVVK8txfjDO3M+AQ= X-Gm-Gg: ATEYQzzJfToXu6UtOLDNOHKw9vM6xT9syLII4/AEhPv2Th+v9dbtykKi4EPbxBFD+RN lmkMf8jSZ6wNJ8Mc/miwLFkovP6woh70SBnd8J5g30d4mfGO3ol/j09RdV59GdNpstERcUPSCek KIVQ4mo4It3tfeIUIsJCj6WgvkzS7F5JPwPiCahVIUml0Z9sXZ2rflXMr+EJCeStZGw4cLz04Q9 s2Vn85gHgdVL+dsY64HGEvg3K/rELdDMwGyhm38uci/N7Lr58srZwMtL8Z79LI7eAp1IzhrSJtL 5Ja+2r/DWdQRRxrOn/yv/DllfAe7jDJi84bFjgxvli+FmpzpfbfXc9MQnG0p/DRjNpqvGIUweA= = X-Received: by 2002:a05:6000:1846:b0:43c:f81f:3e75 with SMTP id ffacd0b85a97d-43cf81f4098mr7115879f8f.0.1774829769021; Sun, 29 Mar 2026 17:16:09 -0700 (PDT) MIME-Version: 1.0 References: <19438-9d37b179c56d43aa@postgresql.org> <1106026.1774573371@sss.pgh.pa.us> <1338824.1774633289@sss.pgh.pa.us> <1830345.1774798374@sss.pgh.pa.us> <1881853.1774828272@sss.pgh.pa.us> In-Reply-To: <1881853.1774828272@sss.pgh.pa.us> From: David Rowley Date: Mon, 30 Mar 2026 13:15:56 +1300 X-Gm-Features: AQROBzA0U6kmRZbv2fNpSvTOPecf1HbYw20Vwm3lWM9X9CEapr5PhutzPHWTEHA Message-ID: Subject: Re: BUG #19438: segfault with temp_file_limit inside cursor To: Tom Lane Cc: kuzmin.db4@gmail.com, pgsql-bugs@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 30 Mar 2026 at 12:51, Tom Lane wrote: > > David Rowley writes: > > I don't know if that means > > it's worth deviating from the similar WARNINGs you've added and making > > that one an ERROR. There's certainly no guarantee with the other > > context that we'll not crash sometime very soon after issuing the > > warning anyway, so maybe it's fine. > > Seems like a reasonable answer. What do you think of making the > double-free cases ERRORs across the board? If we don't error out, > there will likely be cascading problems in all the mcxt types not > just this one. I think it's a good idea. It might slightly increase the chances that we get a report about an issue. I suppose the logic in deciding which elevel to make it could be applied about equally to the sentinel byte check as well. Maybe that should also be an error for the same reason. David