pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Jeremy Finzel <finzelj@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Size estimation of postgres core files
Date: Fri, 15 Feb 2019 18:27:02 +0000
Message-ID: <87d0nslxju.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CAMa1XUh8PF+20H-sU9M2S0MznbV1tNuA07whGN9A+jq=gM+zvA@mail.gmail.com>
References: <CAMa1XUgzVPRs9TiEm_sotK3ZNR_oUZWO183NP1RMKOkt6T2-zA@mail.gmail.com>
	<20190215163655.GA16325@alvherre.pgsql>
	<CAMa1XUh8PF+20H-sU9M2S0MznbV1tNuA07whGN9A+jq=gM+zvA@mail.gmail.com>

>>>>> "Jeremy" == Jeremy Finzel <finzelj@gmail.com> 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)




view thread (6+ messages)  latest in thread

Message-ID: <87d0nslxju.fsf@news-spur.riddles.org.uk>
Permalink:  ../87d0nslxju.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87d0nslxju.fsf@news-spur.riddles.org.uk

 · 

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: andrew@tao11.riddles.org.uk, finzelj@gmail.com, alvherre@2ndquadrant.com
  Subject: Re: Size estimation of postgres core files
  In-Reply-To: <87d0nslxju.fsf@news-spur.riddles.org.uk>
  References: <CAMa1XUgzVPRs9TiEm_sotK3ZNR_oUZWO183NP1RMKOkt6T2-zA@mail.gmail.com> <20190215163655.GA16325@alvherre.pgsql> <CAMa1XUh8PF+20H-sU9M2S0MznbV1tNuA07whGN9A+jq=gM+zvA@mail.gmail.com> <87d0nslxju.fsf@news-spur.riddles.org.uk>

* 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