diff options
author | Andres Freund | 2023-04-14 18:30:20 +0000 |
---|---|---|
committer | Andres Freund | 2023-04-14 18:30:33 +0000 |
commit | 43a33ef54e503b61f269d088f2623ba3b9484ad7 (patch) | |
tree | a43336dbc7ddae66a571ce4658f062b597c4d41f /src/backend/utils/mmgr/slab.c | |
parent | e4d905f772f7803d399b6e173ca9aa7ba8a35e5a (diff) |
Support RBM_ZERO_AND_CLEANUP_LOCK in ExtendBufferedRelTo(), add tests
For some reason I had not implemented RBM_ZERO_AND_CLEANUP_LOCK support in
ExtendBufferedRelTo(), likely thinking it not being reachable. But it is
reachable, e.g. when replaying a WAL record for a page in a relation that
subsequently is truncated (likely only reachable when doing crash recovery or
PITR, not during ongoing streaming replication).
As now all of the RBM_* modes are supported, remove assertions checking mode.
As we had no test coverage for this scenario, add a new TAP test. There's
plenty more that ought to be tested in this area...
Reported-by: Tom Lane <[email protected]>
Reported-by: Alexander Lakhin <[email protected]>
Reviewed-by: Alexander Lakhin <[email protected]>
Discussion: https://postgr.es/m/392271.1681238924%40sss.pgh.pa.us
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/utils/mmgr/slab.c')
0 files changed, 0 insertions, 0 deletions