Re: WIP: Avoid creation of the free space map for small tables
John Naylor <jcnaylor@gmail.com>
From: John Naylor <jcnaylor@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2018-12-06T17:23:28Z
Lists: pgsql-hackers
Attachments
- v10-0001-Avoid-creation-of-the-free-space-map-for-small-t.patch (text/x-patch) patch v10-0001
- v10-0002-During-pg_upgrade-skip-transfer-of-FSMs-if-they.patch (text/x-patch) patch v10-0002
On 12/3/18, Amit Kapila <amit.kapila16@gmail.com> wrote: > On Mon, Dec 3, 2018 at 11:15 AM John Naylor <jcnaylor@gmail.com> wrote: >> Per your recent comment, we no longer check relation size if we waited >> on a relation extension lock, so this is essentially a reversion to an >> earlier version. >> > > fsm_local_set is being called from RecordAndGetPageWithFreeSpace and > GetPageWithFreeSpace whereas the change we have discussed was specific > to GetPageWithFreeSpace, so not sure if we need any change in > fsm_local_set. Not needed, but I assumed wrongly you'd think it unclear otherwise. I've now restored the generality and updated the comments to be closer to v8. > It would be good if you add few comments atop functions > GetPageWithFreeSpace, RecordAndGetPageWithFreeSpace and > RecordPageWithFreeSpace about their interaction with local map. Done. Also additional minor comment editing. I've added an additional regression test for finding the right block and removed a test I thought was redundant. I've kept the test file in its own schedule. -John Naylor
Commits
-
Improve code comments in b0eaa4c51b.
- 06c8a5090ed9 12.0 landed
-
During pg_upgrade, conditionally skip transfer of FSMs.
- 13e8643bfc29 12.0 landed
-
Add more tests for FSM.
- 6f918159a97a 12.0 landed
-
Doc: Update the documentation for FSM behavior for small tables.
- 29d108cdecbe 12.0 landed
-
Make FSM test portable.
- 08ecdfe7e5e0 12.0 landed
-
Avoid creation of the free space map for small heap relations, take 2.
- b0eaa4c51bbf 12.0 landed
-
Move page initialization from RelationAddExtraBlocks() to use, take 2.
- 0d1fe9f74e36 12.0 cited
-
Avoid creation of the free space map for small heap relations.
- ac88d2962a96 12.0 landed
-
In bootstrap mode, don't allow the creation of files if they don't already
- d66e3664b8ba 12.0 landed