Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0XDG-0005PH-Bs for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 18:19:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e0XDF-0002Gr-Uw for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 18:19:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0XDE-0002CQ-Lp for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 18:19:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0XDC-0003jf-11 for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 18:19:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v96IIvt2014909; Fri, 6 Oct 2017 14:18:57 -0400 From: Tom Lane To: Andres Freund cc: Michael Paquier , ropeladder@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #14843: CREATE TABLE churns through all memory, crashes db In-reply-to: <20171006180143.rq3idmtijbeahjyj@alap3.anarazel.de> References: <20171005230321.28561.15927@wrigleys.postgresql.org> <20171005231611.5tfuwmeihma6mtu5@alap3.anarazel.de> <20171006180143.rq3idmtijbeahjyj@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 06 Oct 2017 11:01:43 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14907.1507313937.1@sss.pgh.pa.us> Date: Fri, 06 Oct 2017 14:18:57 -0400 Message-ID: <14908.1507313937@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs