Improve gist XLOG code to follow the coding rules needed to prevent
Tom Lane <tgl@sss.pgh.pa.us>
Improve gist XLOG code to follow the coding rules needed to prevent torn-page problems. This introduces some issues of its own, mainly that there are now some critical sections of unreasonably broad scope, but it's a step forward anyway. Further cleanup will require some code refactoring that I'd prefer to get Oleg and Teodor involved in.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gist/gist.c | modified | +53 −52 |
| src/backend/access/gist/gistvacuum.c | modified | +34 −19 |
| src/backend/access/gist/gistxlog.c | modified | +126 −171 |
| src/include/access/gist_private.h | modified | +16 −18 |