pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Marcus Gartner <marcus@cockroachlabs.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17261: FK ON UPDATE CASCADE can break referential integrity with columns of different types
Date: Mon, 1 Nov 2021 20:14:32 -0300
Message-ID: <202111012314.qcqulwshoxfx@alvherre.pgsql> (raw)
In-Reply-To: <CAJ2Nfu_xVpV5gZYu04scKbizOgSNVF7AEEtwo7u1S64KiZY8hg@mail.gmail.com>

On 2021-Nov-01, Marcus Gartner wrote:

> I agree with you there. So why is an FK relationship between columns of
> different types even allowed?

It is useful in other cases, such as varchar or int4/int8.

Please don't top-post.

-- 
Álvaro Herrera              Valdivia, Chile  —  https://www.EnterpriseDB.com/
 Are you not unsure you want to delete Firefox?
       [Not unsure]     [Not not unsure]    [Cancel]
                   http://smylers.hates-software.com/2008/01/03/566e45b2.html





view thread (8+ messages)  latest in thread

Message-ID: <202111012314.qcqulwshoxfx@alvherre.pgsql>
Permalink:  ../202111012314.qcqulwshoxfx@alvherre.pgsql/
Also on:    postgresql.org/message-id/202111012314.qcqulwshoxfx@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@alvh.no-ip.org, marcus@cockroachlabs.com, tgl@sss.pgh.pa.us, 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: <202111012314.qcqulwshoxfx@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox