Re: BUG #17949: Adding an index introduces serialisation anomalies.
Artem Anisimov <artem.anisimov.255@gmail.com>
From: Artem Anisimov <artem.anisimov.255@gmail.com>
To: Thomas Munro <thomas.munro@gmail.com>,
Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Dmitry Dolgov <9erthalion6@gmail.com>, pgsql-bugs@lists.postgresql.org,
Teodor Sigaev <teodor@sigaev.ru>
Date: 2023-07-14T13:05:51Z
Lists: pgsql-bugs
Hi Thomas, thank you for the fixes. I've looked up the patches in pg's git repo, and they got me wondering: where is the repo with pg tests? I'd be really uneasy to make changes to concurrency-related code without a decent testsuite to verify them. Best regards, Artem. On 04/07/2023 01:02, Thomas Munro wrote: > On Wed, Jun 28, 2023 at 3:18 PM Thomas Munro <thomas.munro@gmail.com> wrote: >> I'll push these in a couple of days if there are no further comments. > Done. > > Thanks Artem, Dmitry and Heikki. > > I wonder how we might be more systematic about this. There are some > general principles that were not respected here, but I'm not sure if > they're even written down let alone defended with code. Something to > think about. > > It's not great to add a new use of BufferGetBlockNumber() (in terms of > false sharing just to get a value that we must have had moment earlier > in order to pin the buffer), but we do that all the time. That seems > like a micro-optimisation worth looking into in some systematic way > across all AMs.
Commits
-
Fix race in SSI interaction with bitmap heap scan.
- 814f3c8e4868 11.21 landed
- 17b8887c29e5 12.16 landed
- 8976ac5c5c00 13.12 landed
- 3f7d3a77e18d 14.9 landed
- ab265e98500b 15.4 landed
- bcc93a389ce3 17.0 landed
- d03d9a2614fd 16.0 landed
-
Fix race in SSI interaction with gin fast path.
- 13f127800fed 11.21 landed
- 255a925d333b 12.16 landed
- fc15473840bc 13.12 landed
- fb663f38790e 14.9 landed
- d34aa0a2f4f3 15.4 landed
- 126552c85c1c 17.0 landed
- 12529028a4e5 16.0 landed
-
Fix race in SSI interaction with empty btrees.
- 0048c3b51549 11.21 landed
- fe88497b4d0b 12.16 landed
- 8f705d7b9d01 13.12 landed
- ae6d536ed0dc 14.9 landed
- 0f275b0ee8e4 15.4 landed
- f9b7fc651a99 17.0 landed
- 0cb1fb2c9bf8 16.0 landed
-
Re-think predicate locking on GIN indexes.
- 0bef1c0678d9 11.0 cited