Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhfLO-0001oS-Ou for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Nov 2021 21:59:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mhfLN-0002vn-Il for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Nov 2021 21:59:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhfLN-0002vb-BY for pgsql-bugs@lists.postgresql.org; Mon, 01 Nov 2021 21:59:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhfLL-0007NW-8P for pgsql-bugs@lists.postgresql.org; Mon, 01 Nov 2021 21:59:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1A1Lxnbh1311166; Mon, 1 Nov 2021 17:59:49 -0400 From: Tom Lane To: marcus@cockroachlabs.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17261: FK ON UPDATE CASCADE can break referential integrity with columns of different types In-reply-to: <17261-b27dbaa13eba2220@postgresql.org> References: <17261-b27dbaa13eba2220@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 01 Nov 2021 21:09:00 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1311164.1635803989.1@sss.pgh.pa.us> Date: Mon, 01 Nov 2021 17:59:49 -0400 Message-ID: <1311165.1635803989@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > It is possible to break foreign key referential integrity when the FK > columns have different types and updates are cascaded from the parent > relation to the child relation. I'm not really sure what you'd consider such an FK relationship to mean. I can't get too excited about it when there doesn't seem to be a well defined semantics for it. regards, tom lane