Re: partitioned tables referenced by FKs

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Amit Langote <amitlangote09(at)gmail(dot)com>, Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: partitioned tables referenced by FKs
Date: 2019-04-03 12:51:37
Message-ID: CA+TgmoY_amZOueJeR3K9wsLvpSKSQvKwNcCMTsHeXuAuHXC06A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Apr 2, 2019 at 11:07 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> The problem this patch is running into is that we'd like to make the
> validity of dropping a table partition depend on whether there are
> individual rows in some other table that FK-reference rows in the target
> partition. That's just completely outside the object-dependency model,
> and I'm not sure why Robert finds that surprising.

I think it's because I was misunderstanding the problem.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2019-04-03 13:47:54 Re: Re: reloption to prevent VACUUM from truncating empty pages at the end of relation
Previous Message Thomas Munro 2019-04-03 12:08:31 Re: Refactoring the checkpointer's fsync request queue