Re: BUG #14843: CREATE TABLE churns through all memory, crashes db

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, ropeladder(at)gmail(dot)com, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14843: CREATE TABLE churns through all memory, crashes db
Date: 2017-10-06 18:18:57
Message-ID: 14908.1507313937@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Andres Freund <andres(at)anarazel(dot)de> writes:
> It's "just" a MemoryContextSwitchTo() that some idiot^WI forgot and
> reviews didn't spot.

Yeah, I had just come to the same conclusion. I have a fix about ready
to commit, unless you're nearly there ...

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Lucas Fairchild-Madar 2017-10-06 18:26:35 json(b)_array_elements use causes very large memory usage when also referencing entire json document
Previous Message Andres Freund 2017-10-06 18:01:43 Re: BUG #14843: CREATE TABLE churns through all memory, crashes db