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 1wfIPn-005NdS-2Y for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jul 2026 14:29:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wfIPm-001uGE-2R for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jul 2026 14:29:18 +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 1wfIPm-001uG6-1Z for pgsql-hackers@lists.postgresql.org; Thu, 02 Jul 2026 14:29:18 +0000 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wfIPk-00000001NRz-26MB for pgsql-hackers@postgresql.org; Thu, 02 Jul 2026 14:29:18 +0000 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-44ce4d7883bso120040fac.0 for ; Thu, 02 Jul 2026 07:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783002554; cv=none; d=google.com; s=arc-20260327; b=bnedilNF52s2U2qLALxYqfpkegsgKHZRw+7X+Ss7RCCvYrVJLMcWk0H2hE8lB/JtyS rOvy/rKtJMvZWEEzOUjHV3DbLM2d8wAC6Yt6NfqYmbuVv0VmgonblbgUMdivxkOD9wJD /6o5BwebNIGi7MNzMIxynLr4Fke+jT0jI+vCHfjcLn2OTutAA6WY8FwWU5BFfumvwNQ2 CceyNe0Oo9GGNbhJpeR7XtMTYivVnEcq0SXBBpz7SEj4DRHgD1maxpUyBBYrYJjd5kOE OdWEvRbSfWpgU9vJFW9haxiM4yBf1FC6K2hRrqqCXvMI2HdcjLDFT4xWN6LipM6D4fZF TIog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CIXlZM7JWLbhc+6npmyj2FA/sSDORfh4t8CiDwcDs3U=; fh=IihRdnie4M8B2iD2XR4ymgjFwMgnVg6PlDtTU0FOEfI=; b=nfaRr+4TNkuIuI4WLV3GOg8FH54flP4tprJWSfMIMEIGFi1Laf7YqSs8OGZbP+CZi3 WTu3V6ppr7DlJqBCMJqgQ7925i3TgjTxAUt3evnsPI14aoBvzFEUD0yHJp/0eJBu9utv vSkxtJu6FUJ1RvUCfA54qg4t5zof5qI70qGPe6gDGHDyJQyhM4COgUS9c8kNMFxQacUf KA6LSBS/qh58f9cDZWa5Oa9GyGrc/6KCnu6EucL9VeYr1hMbkEasGsur/r6rDAQFEzvi QnV60BNo/2xxGI5sNUarj730YfJqQGZX0kweQddIXDZq4vONQJY3SZWoWHAbc1P6i80y fOZw==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20251104.gappssmtp.com; s=20251104; t=1783002554; x=1783607354; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CIXlZM7JWLbhc+6npmyj2FA/sSDORfh4t8CiDwcDs3U=; b=nDQWQxgQAfZomwJu2PurcYRk9blh9xWDTCXCfmvBT9G40TNNVlN+V13zF82VnCCWS/ GcS7TGNFuAHGTjjqV+3Jmbn7vHf6vEw2dWtcpgnf0gw4PRXzkdFeNvKdeaElxYRJuN9g 9SB4fZpd/JwrcSttnW5OnJ6uObk9QdJOATH6XYRcwFQVSzW3KxmIINTKvRsd5Or+h+7T J3pIKnY2EgTNtVueIBptK9/qlfWK7buSu/MHzHd3gzIUwZHrs0NSaTq3804o5hmjJb5u ey1lXprGhleylVetBL7SeD0hlnpjkcROtRPdxvys9sCGfxt+zT6gjCrtE/M+JLmYva1r KkKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783002554; x=1783607354; h=content-transfer-encoding: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=CIXlZM7JWLbhc+6npmyj2FA/sSDORfh4t8CiDwcDs3U=; b=Qnltr4rOuaAam9SKHESl6Xz3/52ftkztd/uSzNozz07adhGQRDt9q6nFS7T1ufgMpO M7X2YudWgVTVMmanu0AC5eny0fgmB2PTVtFAUry7+IKlN3YXH6yY/I0fuvl7WmbDPBqD C0HUB0kxdihtHXpTL7Ji9ArIGW/RqktMIcYju7S7o7vLcPOeMRXoFxLVk37fmCG2Kngp 96Si7wg25xK9ltj/N9pAhEkqACddy9nW6KCeYtCuEy8Q0LXg4dqZnHfCWzAfkhALRo4m Ji9ImGvBiPCWxp5OP6Na73Fme6bda28tlp+LB5efMEwTWe92cn8gYMt+zFZEUv4Ab2CP r2Rg== X-Forwarded-Encrypted: i=1; AFNElJ8AtboowwlSHqHsO8lUuahHuWgD3ixgFYsItegNKwIG4bdnrNid7xhPCuldn0rhK5+FV571oihsHkofnLzD@postgresql.org X-Gm-Message-State: AOJu0YwwF4KpfEdZQb9KGq7HTRhpUrbX3I3p/0utTR91hrguX8tXVtWl W/FQSg6ZAxCrHdnktCc1TohhrlnCT66b0yGjd4zMLmN3l1bPDjqX+F8ywAa+rtdmzHkLLaOgb9c ePkPoP1hDN7ON0xPwOJsaif4uz7ZHvzjr1f2PmGPsDA== X-Gm-Gg: AfdE7clOcoxXwYWxXJdr/y4g3HYwAv4OvRwUEce2qZbPvbOocwQI/mdQHm9vrJatSnj QxKvknA647RMyvs6WJ9QRBm4/khSfDPIuRJCfRmfUyDwOGbwkXBjxY1RrSd/TUlejeu0GJeClfj rB2XO+KV0wmIQ5dnGJOnaWiNlK9G+0SBzw6zl/Cqoxg52mwEsbwE4PuPB2g+ky76TL8ZTXVBwYV nMhgeLkeDIxV8BSBG1Cb6XZO7uoFsFzuh2Im0rQtii6xV9Ae2vPtWMC3D2jb2VQCKIzHf2AMTVt t7Od0qjd7wyW8mq1Gkri/Uj3Mtt/FGkUOeNRCj24 X-Received: by 2002:a05:6808:4984:b0:496:10e6:f76e with SMTP id 5614622812f47-49610e6f7f0mr3904804b6e.4.1783002554264; Thu, 02 Jul 2026 07:29:14 -0700 (PDT) MIME-Version: 1.0 References: <626986.1776785090@sss.pgh.pa.us> <84f20d0d-3bc8-4843-bd7e-21bce20f8582@eisentraut.org> <4984118e-0dc5-49a9-b279-fd0b707be8e0@eisentraut.org> In-Reply-To: <4984118e-0dc5-49a9-b279-fd0b707be8e0@eisentraut.org> From: Paul A Jungwirth Date: Thu, 2 Jul 2026 07:29:03 -0700 X-Gm-Features: AVVi8CdoaQLhqM9uZcDwB7uCicJzyFSzq19MWL5dR1-SZIapfsdfBU23TiNzzT4 Message-ID: Subject: Re: [PATCH] Fix null pointer dereference in PG19 To: Peter Eisentraut Cc: Aleksander Alekseev , PostgreSQL Development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jul 2, 2026 at 12:25=E2=80=AFAM Peter Eisentraut wrote: > > > But I don't mind holding it back if that's what people want to do. > > Looking more closely at INSTEAD OF triggers, I found another bug: the > > FOR PORTION OF qual (and TLE) were not added, so the trigger would > > fire on more rows than it should, and NEW.valid_at was not > > pre-computed. The second patch here fixes that. I'll defer to others > > whether we should fix the INSTEAD OF interaction now or wait 'til v20. > > It seems to me that both FOR PORTION OF and INSTEAD OF triggers are SQL > standard features, so this discussion should refer to what the standard > says, and possibly consider what other implementations do (in addition > to discussing what makes sense). Since that hasn't been done yet, maybe > prohibiting this combination for now, as proposed by Aleksander, would > be best. Okay, let's do that. I'll do some research to see what the standard says and whether any other RDBMS offers guidance. Yours, --=20 Paul ~{:-) pj@illuminatedcomputing.com