Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guiCd-0000rX-6R for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 18:27:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1guiCb-0003Ik-S2 for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 18:27:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guiCb-0003Ic-GL for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 18:27:09 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guiCY-0007T1-Dd for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 18:27:08 +0000 Received: from [192.168.127.1] (port=32492 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1guiCU-000P2e-Nm; Fri, 15 Feb 2019 18:27:02 +0000 Received: from [127.0.0.1] (port=21979 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1guiCU-000Enu-1x; Fri, 15 Feb 2019 18:27:02 +0000 From: Andrew Gierth To: Jeremy Finzel Cc: Alvaro Herrera , PostgreSQL General Subject: Re: Size estimation of postgres core files In-Reply-To: (Jeremy Finzel's message of "Fri, 15 Feb 2019 12:18:54 -0600") Message-ID: <87d0nslxju.fsf@news-spur.riddles.org.uk> References: <20190215163655.GA16325@alvherre.pgsql> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Fri, 15 Feb 2019 18:27:02 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Jeremy" == Jeremy Finzel writes: Jeremy> Yes Linux. This is very helpful, thanks. A follow-up question - Jeremy> will it take postgres a really long time to crash (and Jeremy> hopefully recover) if I have say 1T of RAM because it has to Jeremy> write that all out to a core file first? It doesn't write out all of RAM, only the amount in use by the particular backend that crashed (plus all the shared segments attached by that backend, including the main shared_buffers, unless you disable that as previously mentioned). And yes, it can take a long time to generate a large core file. -- Andrew (irc:RhodiumToad)