pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Jan Wieck <jan@wi3ck.info>
To: Stefan Blanke <stefan.blanke@framestore.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: ERROR: invalid memory alloc request size 1073741824
Date: Wed, 31 Jan 2018 22:23:45 +0100
Message-ID: <9b1b1008-45fd-8c1a-c45b-6b5be9b24e53@2ndquadrant.com> (raw)
In-Reply-To: <CAGBW59dKrpjPLkEMu_bfyJuF=DM7+d8v+M8YDMkaUEhmu3pMeQ@mail.gmail.com>
References: <733ecd96-48ed-8d49-15e1-413eb535c4c6@framestore.com>
	<CAGBW59dUpbSvVHueoYYR3zk04gWPAuutSuLS-bAGPyMbG9Ow0g@mail.gmail.com>
	<28d517a9-bf36-1a79-c2e7-6356dcd31064@2ndquadrant.com>
	<ab3b5179-e840-4205-1841-6315c9f62583@framestore.com>
	<CAGBW59dKrpjPLkEMu_bfyJuF=DM7+d8v+M8YDMkaUEhmu3pMeQ@mail.gmail.com>



On 01/31/2018 09:51 PM, Jan Wieck wrote:
> 
> 
> On Wed, Jan 31, 2018 at 12:32 PM, Stefan Blanke
> <stefan.blanke@framestore.com <mailto:stefan.blanke@framestore.com>> wrote:
> 
>     >
>     > I'll bet you it's not that. It's quite unlikely that would fail with
>     > exactly 1GB request size. It seems much more like a buffer that we keep
>     > to be power of 2. The question is which one.
> 
>     I had dismissed corruption before writing in. It's exactly 1GB every
>     time this has happened - and we can dump the full dataset
>     periodically without issue.
> 
>     >> I have my money on a corrupted TOAST entry. Is this happening on
>     >> trustworthy hardware or beige box with no ECC or RAID?
> 
>     It's good quality commercial hardware in our colo - no exactly sure
>     what.
> 
> 
> If it is a sporadic issue and you can dump the full dataset, then I just
> lost my money (Tomas, you coming to PGConf in Jersey City?).
> 

Unfortunately no, but I'm sure there will be other opportunities to buy
me a beer ;-) Like pgcon, for example.

>
> But then, if this is a plain COPY to stdout ... I am wondering what
> could possibly be in that path that wants to allocate 1GB. Or is this
> not so plain but rather a COPY ... SELECT ...?
> 

That's what I've been guessing, and why I was asking for a query plan.


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (43+ messages)  latest in thread

Message-ID: <9b1b1008-45fd-8c1a-c45b-6b5be9b24e53@2ndquadrant.com>
Permalink:  ../9b1b1008-45fd-8c1a-c45b-6b5be9b24e53@2ndquadrant.com/
Also on:    postgresql.org/message-id/9b1b1008-45fd-8c1a-c45b-6b5be9b24e53@2ndquadrant.com

 · 

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: tomas.vondra@2ndquadrant.com, jan@wi3ck.info, stefan.blanke@framestore.com
  Subject: Re: ERROR: invalid memory alloc request size 1073741824
  In-Reply-To: <9b1b1008-45fd-8c1a-c45b-6b5be9b24e53@2ndquadrant.com>
  References: <733ecd96-48ed-8d49-15e1-413eb535c4c6@framestore.com> <CAGBW59dUpbSvVHueoYYR3zk04gWPAuutSuLS-bAGPyMbG9Ow0g@mail.gmail.com> <28d517a9-bf36-1a79-c2e7-6356dcd31064@2ndquadrant.com> <ab3b5179-e840-4205-1841-6315c9f62583@framestore.com> <CAGBW59dKrpjPLkEMu_bfyJuF=DM7+d8v+M8YDMkaUEhmu3pMeQ@mail.gmail.com> <9b1b1008-45fd-8c1a-c45b-6b5be9b24e53@2ndquadrant.com>

* 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