Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0QYL-00016t-Dg for pgsql-general@arkaria.postgresql.org; Tue, 28 Jul 2020 14:26:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k0QYI-0001zC-L5 for pgsql-general@arkaria.postgresql.org; Tue, 28 Jul 2020 14:25:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0QYI-0001z4-DH for pgsql-general@lists.postgresql.org; Tue, 28 Jul 2020 14:25:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0QYF-0001pj-5e for pgsql-general@lists.postgresql.org; Tue, 28 Jul 2020 14:25:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 06SDvRWQ1183742; Tue, 28 Jul 2020 09:57:57 -0400 From: Tom Lane To: "Daniel Westermann (DWE)" cc: "pgsql-general@lists.postgresql.org" Subject: Re: Out of memory with "create extension postgis" In-reply-to: References: Comments: In-reply-to "Daniel Westermann (DWE)" message dated "Tue, 28 Jul 2020 08:42:17 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1183740.1595944647.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 28 Jul 2020 09:57:27 -0400 Message-ID: <1183741.1595944647@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Daniel Westermann (DWE)" writes: > we have a very strange behavior on PostgreSQL 12.3 when we try to create= the extension postgis. Postgres and postgis have both been installed from= packages: > ... > 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 "PortalCont= ext". > Time: 773569.877 ms (12:53.570) Quite odd. There should have been a memory context dump written to the postmaster's stderr, can you show that? Also possibly useful would be a backtrace (set a breakpoint at errfinish): https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_= backend regards, tom lane