aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-11-03 17:23:13 +0100
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-11-03 17:23:13 +0100
commitcf0612aa2c8fdc54bb98a13ef839f43cef5eadc5 (patch)
tree0fc62c04c028700d9e586c5827196ede85e979b6 /src/backend/utils
parent90d61bd1d16bb51d9bbc07e2e345e49bed7310fe (diff)
downloadpostgresql-cf0612aa2c8fdc54bb98a13ef839f43cef5eadc5.tar.gz
postgresql-cf0612aa2c8fdc54bb98a13ef839f43cef5eadc5.zip
Fix BRIN summarization concurrent with extension
If a process is extending a table concurrently with some BRIN summarization process, it is possible for the latter to miss pages added by the former because the number of pages is computed ahead of time. Fix by determining a fresh relation size after inserting the placeholder tuple: any process that further extends the table concurrently will update the placeholder tuple, while previous pages will be processed by the heap scan. Reported-by: Tomas Vondra Reviewed-by: Tom Lane Author: Álvaro Herrera Discussion: https://postgr.es/m/083d996a-4a8a-0e13-800a-851dd09ad8cc@2ndquadrant.com Backpatch-to: 9.5
Diffstat (limited to 'src/backend/utils')
0 files changed, 0 insertions, 0 deletions