Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFEc1-0006YM-1m for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 08:33:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gFEbz-000148-Eh for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 08:33:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFEbz-00013Z-4t for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 08:33:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFEbw-0000Oy-AM for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 08:33:54 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9O8Xm2I008861; Wed, 24 Oct 2018 04:33:48 -0400 From: Tom Lane To: Bruno Wolff III cc: pgsql-general@lists.postgresql.org Subject: Re: Should pg 11 use a lot more memory building an spgist index? In-reply-to: <20181024012314.GA27428@wolff.to> References: <20181024012314.GA27428@wolff.to> Comments: In-reply-to Bruno Wolff III message dated "Tue, 23 Oct 2018 20:23:14 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19002.1540370027.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 24 Oct 2018 09:33:48 +0100 Message-ID: <19003.1540370028@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruno Wolff III writes: > While reloading a database cluster to move from 10.5 to 11, I'm getting = > out of memory crashes that I did see when doing reloads on pg 10. > The statement flagged in the log is this: > 2018-10-23 16:44:34.815 CDT [126839] STATEMENT: ALTER TABLE ONLY public= .iplocation > ADD CONSTRAINT overlap EXCLUDE USING spgist (network WITH &&); Hm, there's a fair amount of new code in SP-GIST in v11, so maybe you've hit a memory leak in that. Can you create a self-contained test case? regards, tom lane