]> granicus.if.org Git - postgresql/commit
Fix assertion failure due to over-eager code deduplication.
authorAndres Freund <andres@anarazel.de>
Wed, 1 Mar 2017 04:41:44 +0000 (20:41 -0800)
committerAndres Freund <andres@anarazel.de>
Wed, 1 Mar 2017 04:43:18 +0000 (20:43 -0800)
commit123ccbe58309d08e42009e99a4b34a3a1aef7798
tree37d32a9bb0dbbfd192c7e6cce07b96ee7ddbbe37
parentf4e2d50cd7483a068c0a32e56b2d40f980cdea72
Fix assertion failure due to over-eager code deduplication.

In the previous commit I'd made MemoryContextContains() use
GetMemoryChunkContext(), but that causes trouble when the passed
pointer isn't allocated in any memory context - that's probably
something we shouldn't do, but the previous commit isn't a place for a
"policy" change.
src/backend/utils/mmgr/mcxt.c