Re: Deleting older versions in unique indexes to avoid page splits
Victor Yegorov <vyegorov@gmail.com>
From: Victor Yegorov <vyegorov@gmail.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-10-16T19:59:51Z
Lists: pgsql-hackers
пт, 16 окт. 2020 г. в 21:12, Peter Geoghegan <pg@bowt.ie>: > I ran the script for two hours and 16 clients with the patch, then for > another two hours with master. After that time, all 3 indexes were > exactly the same size with the patch, but had almost doubled in size > on master: > > aid_pkey_include_abalance: 784,264 pages (or ~5.983 GiB) > one: 769,545 pages (or ~5.871 GiB) > two: 770,295 pages (or ~5.876 GiB) > > (With the patch, all three indexes were 100% pristine -- they remained > precisely 411,289 pages in size by the end, which is ~3.137 GiB.) > > … > > The TPS/throughput is about what you'd expect for the two hour run: > > 18,988.762398 TPS for the patch > 11,123.551707 TPS for the master branch. > I really like these results, great work! I'm also wondering how IO numbers changed due to these improvements, shouldn't be difficult to look into. Peter, according to cfbot patch no longer compiles. Can you send and update, please? -- Victor Yegorov
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Enhance nbtree index tuple deletion.
- d168b666823b 14.0 landed
-
Pass down "logically unchanged index" hint.
- 9dc718bdf2b1 14.0 landed
-
Fix index deletion latestRemovedXid bug.
- 422881744997 14.0 cited
-
Deprecate nbtree's BTP_HAS_GARBAGE flag.
- cf2acaf4dcb5 14.0 landed