Re: ATTACH/DETACH PARTITION CONCURRENTLY
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Robert Haas <robertmhaas@gmail.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>, Alvaro Herrera <alvherre@2ndquadrant.com>, Andres Freund <andres@anarazel.de>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Simon Riggs <simon@2ndquadrant.com>
Date: 2018-11-15T01:04:45Z
Lists: pgsql-hackers
On Wed, Nov 14, 2018 at 02:27:31PM -0500, Robert Haas wrote: > Here are a couple of patches to illustrate this approach to this part > of the overall problem. 0001 is, I think, a good cleanup that may as > well be applied in isolation; it makes the code in > RelationBuildPartitionDesc both cleaner and more efficient. 0002 > adjust things so that - I hope - the partition bounds we get for the > individual partitions has to be as of the same point in the commit > sequence as the list of children. As I noted before, Alvaro's patch > doesn't seem to have tackled this part of the problem. You may want to rebase these patches as of b52b7dc2, and change the first argument of partition_bounds_create() so as a list is used in input... -- Michael
Commits
-
Allow ATTACH PARTITION with only ShareUpdateExclusiveLock.
- 898e5e3290a7 12.0 landed
-
Change lock acquisition order in expand_inherited_rtentry.
- f4b6341d5fcb 12.0 landed
-
Move code for managing PartitionDescs into a new file, partdesc.c
- 1bb5e7821810 12.0 landed
-
Remove more redundant relation locking during executor startup.
- f2343653f5b2 12.0 cited
-
Add assertions that we hold some relevant lock during relation open.
- b04aeb0a053e 12.0 cited
-
Try to acquire relation locks in RangeVarGetRelid.
- 4240e429d0c2 9.2.0 cited