aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-03-07 13:25:11 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-03-07 13:29:24 +0200
commit4f91af8ca2f567bc9087644b29df8d6a56549994 (patch)
treee30007596f06ed347fd64d7332fb907c279ac386 /contrib/postgres_fdw/sql/postgres_fdw.sql
parent8332fe76b559dd7d0a689ec66e96c359e67e1f3b (diff)
downloadpostgresql-4f91af8ca2f567bc9087644b29df8d6a56549994.tar.gz
postgresql-4f91af8ca2f567bc9087644b29df8d6a56549994.zip
Fix dangling smgr_owner pointer when a fake relcache entry is freed.
A fake relcache entry can "own" a SmgrRelation object, like a regular relcache entry. But when it was free'd, the owner field in SmgrRelation was not cleared, so it was left pointing to free'd memory. Amazingly this apparently hasn't caused crashes in practice, or we would've heard about it earlier. Andres found this with Valgrind. Report and fix by Andres Freund, with minor modifications by me. Backpatch to all supported versions.
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions