pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Westermann (DWE) <daniel.westermann@dbi-services.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Out of memory with "create extension postgis"
Date: Tue, 28 Jul 2020 10:55:21 -0400
Message-ID: <1193682.1595948121@sss.pgh.pa.us> (raw)
In-Reply-To: <ZR0P278MB0122C779C0B490F6EE41F5ECD2730@ZR0P278MB0122.CHEP278.PROD.OUTLOOK.COM>
References: <ZR0P278MB0122BE5FB48902BADDD9ED17D2730@ZR0P278MB0122.CHEP278.PROD.OUTLOOK.COM>
	<1183741.1595944647@sss.pgh.pa.us>
	<ZR0P278MB0122C779C0B490F6EE41F5ECD2730@ZR0P278MB0122.CHEP278.PROD.OUTLOOK.COM>

"Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com> writes:
>> "Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com> writes:
>>> The process eats all the available memory and finally dies:
>>> # create extension postgis;
>>> ERROR:  out of memory
>>> DETAIL:  Failed on request of size 8265691 in memory context "PortalContext".
>>> Time: 773569.877 ms (12:53.570)

> There is nothing in the log file except these (not from today, but the messages are always the same):
> 2020-07-03 16:52:16 CEST 53617 LOG:  server process (PID 54070) was terminated by signal 9: Killed

A process that was killed by the OOM killer would not have managed to
produce an "out of memory" ERROR report, so these two are different
symptoms.  You need to reproduce the first case, or you won't have
any luck setting an error breakpoint either.

If you can't manage to get back to that state, you might get somewhere
by waiting for the process to grow large and then attaching with gdb
and getting a stack trace.  That's a bit less reliable than the
errfinish approach, though.

			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <1193682.1595948121@sss.pgh.pa.us>
Permalink:  ../1193682.1595948121@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1193682.1595948121@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daniel.westermann@dbi-services.com
  Subject: Re: Out of memory with "create extension postgis"
  In-Reply-To: <1193682.1595948121@sss.pgh.pa.us>
  References: <ZR0P278MB0122BE5FB48902BADDD9ED17D2730@ZR0P278MB0122.CHEP278.PROD.OUTLOOK.COM> <1183741.1595944647@sss.pgh.pa.us> <ZR0P278MB0122C779C0B490F6EE41F5ECD2730@ZR0P278MB0122.CHEP278.PROD.OUTLOOK.COM> <1193682.1595948121@sss.pgh.pa.us>

* 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