Re: Unhappy about API changes in the no-fsm-for-small-rels patch
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Amit Kapila <amit.kapila16@gmail.com>,
John Naylor <john.naylor@2ndquadrant.com>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-04-23T17:31:25Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > On 2019-04-23 15:46:17 +0530, Amit Kapila wrote: >> If we invalidate it only when there's no space on the page, then when >> should we set it back to available, because if we don't do that, then >> we might miss the space due to concurrent deletes. > Well, deletes don't traditionally (i.e. with an actual FSM) mark free > space as available (for heap). I think RecordPageWithFreeSpace() should > issue a invalidation if there's no FSM, and the block goes from full to > empty (as there's no half-full IIUC). Why wouldn't we implement this just as a mini four-entry FSM stored in the relcache, and update the entries according to the same rules we'd use for regular FSM entries? regards, tom lane
Commits
-
Revert "Avoid the creation of the free space map for small heap relations".
- 7db0cde6b58e 12.0 landed
-
Improve code comments in b0eaa4c51b.
- 06c8a5090ed9 12.0 cited
-
During pg_upgrade, conditionally skip transfer of FSMs.
- 13e8643bfc29 12.0 cited
-
Add more tests for FSM.
- 6f918159a97a 12.0 cited
-
Fix typos in commit 8586bf7ed8.
- a6e48da08844 12.0 cited
-
tableam: introduce table AM infrastructure.
- 8586bf7ed888 12.0 cited
-
Clear the local map when not used.
- 9c32e4c35026 12.0 cited
-
Doc: Update the documentation for FSM behavior for small tables.
- 29d108cdecbe 12.0 cited
-
Make FSM test portable.
- 08ecdfe7e5e0 12.0 cited
-
Avoid creation of the free space map for small heap relations, take 2.
- b0eaa4c51bbf 12.0 cited