aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeAgg.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2020-07-17 17:49:45 -0700
committerPeter Geoghegan <pg@bowt.ie>2020-07-17 17:49:45 -0700
commit1e0dfd166b3fa7fc79e4fad73b6fae056bab598a (patch)
tree2b21c413c9964282a03ba1a01a1ad1e746d4d29b /src/backend/executor/nodeAgg.c
parentf009591d6eddbeece955aab70c35e7002fd01aec (diff)
downloadpostgresql-1e0dfd166b3fa7fc79e4fad73b6fae056bab598a.tar.gz
postgresql-1e0dfd166b3fa7fc79e4fad73b6fae056bab598a.zip
Add Valgrind buffer access instrumentation.
Teach Valgrind memcheck to maintain the "defined-ness" of each shared buffer based on whether the backend holds at least one pin at the point it is accessed by access method code. Bugs like the one fixed by commit b0229f26 can be detected using this new instrumentation. Note that backends running with Valgrind naturally have their own independent ideas about whether any given byte in shared memory is safe or unsafe to access. There is no risk that concurrent access by multiple backends to the same shared memory will confuse Valgrind's instrumentation, because everything already works at the process level (or at the memory mapping level, if you prefer). Author: Álvaro Herrera, Peter Geoghegan Reviewed-By: Anastasia Lubennikova Discussion: https://postgr.es/m/20150723195349.GW5596@postgresql.org Discussion: https://postgr.es/m/CAH2-WzkLgyN3zBvRZ1pkNJThC=xi_0gpWRUb_45eexLH1+k2_Q@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeAgg.c')
0 files changed, 0 insertions, 0 deletions