pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: pgsql-general@lists.postgresql.org
Subject: Should pg 11 use a lot more memory building an spgist index?
Date: Tue, 23 Oct 2018 20:23:14 -0500
Message-ID: <20181024012314.GA27428@wolff.to> (raw)

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?




view thread (24+ messages)  latest in thread

Message-ID: <20181024012314.GA27428@wolff.to>
Permalink:  ../20181024012314.GA27428@wolff.to/
Also on:    postgresql.org/message-id/20181024012314.GA27428@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-general@postgresql.org
  Cc: bruno@wolff.to, 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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox