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 1wNZC9-000uQD-39 for pgsql-bugs@arkaria.postgresql.org; Thu, 14 May 2026 16:45:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wNZC8-00Du6t-2u for pgsql-bugs@arkaria.postgresql.org; Thu, 14 May 2026 16:45:56 +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 1wNZC8-00Du6a-26 for pgsql-bugs@lists.postgresql.org; Thu, 14 May 2026 16:45:56 +0000 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wNZC2-00000000ZMy-1wuj for pgsql-bugs@lists.postgresql.org; Thu, 14 May 2026 16:45:55 +0000 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-4358f61c9c8so2597961fac.0 for ; Thu, 14 May 2026 09:45:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778777150; x=1779381950; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mBWN+ojkhxwNfoblbjgvqn7T/H437WIsYSJfPdiz4v4=; b=oLw/LHvWXWS4ep4Ade8yMB1ASpqiaoXn1JnaJcGmpMkiQcs4iurSQynaXK9WaTnTWB FPHtzBJTCt4j+M+HsRMTxXt6qWP6C4VMf+4P9NKidTLZSUZ8Yk6QQUCTSafz73XfM8n7 MtdpXAxNs/FoPuXvtuRKMXEiEC2IXOEazbzKI5PuMxX6uvRQYv6saebjVwC3AP68KnwZ iE5s2434tiD6KQgk0qsFgFU6fiiC0jbwVZLnWhKPW/oVQTIYzxdQnkHTdGfu+NaPtzjW VuTrruT0aOPjSqs3Z8SNQ4cLYhkZWElt7+utP6lj8WmXT3/Npoe2n7AM/S4mnJTDOxV9 vDdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778777150; x=1779381950; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mBWN+ojkhxwNfoblbjgvqn7T/H437WIsYSJfPdiz4v4=; b=DfOZvQkoipwsvW8biTv+KkGDWQnScpsKMmbNoNvoIeuHeeuI/3JibH5zOXXcFuJ8e+ l119+epuUCCUzPK+eLcs87+UNrt/xLQQPE6xusTtg6WmastqDmjdzR7UuXpipFSbP7Tb PV9ja/K3tV5F2nffDTwvlKgw6DxOCnyiRHVE51cnbUNoM4eBjPzjSprsJRe3Npz/zDf3 Rp8t7WSfubI0f1w/l/3Uagh66tC1GdmWA4VUg017D8sNDRYAhZEjy+aE8t38ZncbA/T7 d6fO2EdIly0yNn2a2Se53/0iaTI2o4GdE0VBybMQY3e7gW1k0twXe3fFMY3I85IJOQ6P JfEQ== X-Forwarded-Encrypted: i=1; AFNElJ9W/87dZ0fXQ94Csok3B0S0AX+SOn8ndCrYgcLaEM0AoULyLcHDQirkb+2JLUqmTnWF9BYhXqt3oDcv@lists.postgresql.org X-Gm-Message-State: AOJu0YzaNfzc71icyH90/m3YfbCa1UyDtQchoznee+Jrr2q7oj1oQOTS M28qb2vOHBY4ZJQPzIx9BmRM+9bIlBYAPqQ+YdAKswbAK2rc4VMNQeS2 X-Gm-Gg: Acq92OFctwyUTQl7Wl/yyE64FkpKPMBn/IAvxxu7vdKJBCm4vtKjRuJEkpFPMh9Bham U/3ivAfdPhjRc0z0t2in9MkrhhK9r0S8DQHF+xs9pjFv7YWs6kA0e9cIrbf7OHlutTLxmRq42rW MkgCorZtBX+yBzGA0KNnzkci9jV43h5Atf1GWKqcWBglsv2Yr2H0qqeqzVP1lk5AnD+PUL6pI+d wjxsvTOBF9sWDyKFJXpjfoX6ckCCvTyIPqiklBzyhcS8hnZGLZzIKw80ehyHF0d8YBls2g4HJrP 2CQ89nZoYO0uVppnpkVxxid6PUANFobSYk/cR2hym3VnUI7zLkRGknxdxaZ4cYZU34s4TtDcRGE 5mfyNIMHb78P0PTW6Saux9DkrxV5H3BBev18AzYv/c0k9rxPHv2bQa2Dft54XfExVrf/yPFh25K YrmJjbzB0fJTjdeWDeOUc0bZrXSAXWxUzl4dr+Ln1qPn05yIel/TCgeMn9pYniIg6w8maQ31WKO RdogFQT5tJKMH2um/3nepp4byGx2EVh X-Received: by 2002:a05:6871:2897:b0:417:533b:79ac with SMTP id 586e51a60fabf-43a2d9b28camr267911fac.9.1778777149747; Thu, 14 May 2026 09:45:49 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-439fc1d7be5sm2127417fac.5.2026.05.14.09.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2026 09:45:48 -0700 (PDT) Date: Thu, 14 May 2026 11:45:46 -0500 From: Nathan Bossart To: Ayush Tiwari Cc: pierre.forstmann@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19476: Segmentation fault in contrib/spi Message-ID: References: <19476-bd04ea6241345303@postgresql.org> <1357efa6-dddb-4e60-ba6f-e88d03a4e010@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="CN4uTtA78AYCFRt1" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --CN4uTtA78AYCFRt1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 14, 2026 at 11:01:55AM -0500, Nathan Bossart wrote: > Regarding 0001, note that the refint docs state the following: > > Note that the primary/unique key columns should be marked NOT NULL and > should have a unique index. > > So maybe we could alternatively teach check_foreign_key() to either ERROR > or do nothing instead. On the other hand, given this case seemed to > accidentally work before the CVE fix, it's arguably worth fixing. Here is what I have staged for commit, which I intend to do shortly. -- nathan --CN4uTtA78AYCFRt1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v3-0001-refint-Fix-seg-fault-in-check_foreign_key.patch