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 1gF7xn-0002U2-2T for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 01:27:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gF7xj-00049H-9V for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 01:27: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 1gF7xj-00049A-1M for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 01:27:55 +0000 Received: from wolff.to ([98.103.208.27]) by magus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1gF7xb-00084C-Qf for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 01:27:54 +0000 Received: (qmail 27563 invoked by uid 500); 24 Oct 2018 01:23:14 -0000 Date: Tue, 23 Oct 2018 20:23:14 -0500 From: Bruno Wolff III To: pgsql-general@lists.postgresql.org Subject: Should pg 11 use a lot more memory building an spgist index? Message-ID: <20181024012314.GA27428@wolff.to> Mail-Followup-To: Bruno Wolff III , pgsql-general@lists.postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 &&); iplocation has 4398722 rows. This is geolite data where the networks are a partial covering of the total address spaces with no overlaps. Should I expect to have to make config changes to make this work?