Re: ATTACH/DETACH PARTITION CONCURRENTLY
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Robert Haas <robertmhaas@gmail.com>, 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-15T05:38:30Z
Lists: pgsql-hackers
On Thu, Nov 15, 2018 at 01:38:55PM +0900, Amit Langote wrote: > I've fixed 0001 again to re-order the code so that allocations happen the > correct context and now tests pass with the rebased patches. I have been looking at 0001, and it seems to me that you make even more messy the current situation. Coming to my point: do we have actually any need to set rel->rd_pdcxt and rel->rd_partdesc at all if a relation has no partitions? It seems to me that we had better set rd_pdcxt and rd_partdesc to NULL in this case. -- 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