aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-23 01:30:07 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-23 01:30:07 +0300
commita9b3a22aa18345451a20696fe272b6e02f5a2bbb (patch)
treee919ab1aee668f397842e3ce3a9248e850566c51 /src/backend/utils/adt/jsonb.c
parent41ae3b74d987d5d42f2c432812285c7d12d6f4c1 (diff)
downloadpostgresql-a9b3a22aa18345451a20696fe272b6e02f5a2bbb.tar.gz
postgresql-a9b3a22aa18345451a20696fe272b6e02f5a2bbb.zip
Fix off-by-one error in calculating subtrans/multixact truncation point.
If there were no subtransactions (or multixacts) active, we would calculate the oldestxid == next xid. That's correct, but if next XID happens to be on the next pg_subtrans (pg_multixact) page, the page does not exist yet, and SimpleLruTruncate will produce an "apparent wraparound" warning. The warning is harmless in this case, but looks very alarming to users. Backpatch to all supported versions. Patch and analysis by Thomas Munro.
Diffstat (limited to 'src/backend/utils/adt/jsonb.c')
0 files changed, 0 insertions, 0 deletions