Re: pgsql: Remove the restriction that the relmap must be 512 bytes.
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Robert Haas <rhaas@postgresql.org>, pgsql-committers <pgsql-committers@lists.postgresql.org>
Date: 2022-07-27T10:25:47Z
Lists: pgsql-hackers
On Wed, Jul 27, 2022 at 06:21:07PM +1200, Thomas Munro wrote: > Erm, let me try that again, this time with the CloseTransientFile() > also under the lock, so that we never have a file handle without a > lock. Right. The whole write_relmap_file() already happens while taking RelationMappingLock, so that seems like a good idea for consistency at the end (even if I remember that there is a patch floating around to improve the concurrency of pgrename, which may become an easier move now that we require Windows 10). I have tested three runs and that was working here even if the issue is sporadic, so more runs may be better to have more confidence. -- Michael
Commits
-
Bump catversion for commit d8cd0c6c95c0120168df93aae095df4e0682a08a.
- 5f858dd3bebd 16.0 landed
-
Fix read_relmap_file() concurrency on Windows.
- a2e97cb2b6fb 16.0 landed
-
Remove the restriction that the relmap must be 512 bytes.
- d8cd0c6c95c0 16.0 cited