Re: Dependencies for partitioned indexes are still a mess
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2020-08-14T17:30:08Z
Lists: pgsql-hackers
Attachments
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. I'm not yet clear on whether the noisy DROP INDEX is an actual bug that needs to be fixed, or instead it needs to be left alone. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix typo in comment
- fcc42756818c 12.5 landed
- 70ccff88d910 11.10 landed
- 352b8cf59f40 13.0 landed
- 05c16b827f3a 14.0 landed
-
pg_dump: fix dependencies on FKs to partitioned tables
- b7cc21c57d73 13.0 landed
- 3dadcb2b3194 12.5 landed
- 2ba5b2db7943 14.0 landed