pgsql: Fix assertion failure due to over-eager code deduplication.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix assertion failure due to over-eager code deduplication.
Date: 2017-03-01 04:45:42
Message-ID: E1ciw90-0006tu-Bg@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/123ccbe58309d08e42009e99a4b34a3a1aef7798

Modified Files
--------------
src/backend/utils/mmgr/mcxt.c | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-03-01 09:18:20 pgsql: hash: Refactor and clean up bucket split code.
Previous Message Andres Freund 2017-03-01 04:16:13 pgsql: Reduce size of common allocation header.