Re: Dependencies for partitioned indexes are still a mess

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Dependencies for partitioned indexes are still a mess
Date: 2020-08-14 21:35:34
Message-ID: 20200814213534.GA8949@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2020-Aug-14, Alvaro Herrera wrote:

> On 2020-Aug-12, Alvaro Herrera wrote:
>
> > Hmm, we do make the FK constraint depend on the ATTACH for the direct
> > children; what I think we're lacking is dependencies on descendants
> > twice-removed (?) or higher. This mock patch seems to fix this problem
> > by adding dependencies recursively on all children of the index; I no
> > longer see this problem with it.
>
> After going over this some more, this analysis seems correct. Here's a
> better version of the patch which seems final to me.

Pushed.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2020-08-14 22:09:15 Re: fixing old_snapshot_threshold's time->xid mapping
Previous Message Alvaro Herrera 2020-08-14 20:26:51 Re: run pgindent on a regular basis / scripted manner