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: Tue, 30 Jan 2018 23:00:29 +0100
Message-ID: <28d517a9-bf36-1a79-c2e7-6356dcd31064@2ndquadrant.com> (raw)
In-Reply-To: <CAGBW59dUpbSvVHueoYYR3zk04gWPAuutSuLS-bAGPyMbG9Ow0g@mail.gmail.com>
References: <733ecd96-48ed-8d49-15e1-413eb535c4c6@framestore.com>
	<CAGBW59dUpbSvVHueoYYR3zk04gWPAuutSuLS-bAGPyMbG9Ow0g@mail.gmail.com>



On 01/30/2018 10:43 PM, Jan Wieck wrote:
> 
> 
> On Tue, Jan 30, 2018 at 12:35 PM, Stefan Blanke
> <stefan.blanke@framestore.com <mailto:stefan.blanke@framestore.com>> wrote:
> 
>     Hello,
> 
>     We've tripped over an error when doing a "COPY.. TO STDOUT WITH
>     BINARY" query.
> 
>     "ERROR:  invalid memory alloc request size 1073741824"
>     (exactly 1GB)
> 
> 
> I have my money on a corrupted TOAST entry. Is this happening on
> trustworthy hardware or beige box with no ECC or RAID?
> 

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.


regards

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




view thread (43+ messages)  latest in thread

Message-ID: <28d517a9-bf36-1a79-c2e7-6356dcd31064@2ndquadrant.com>
Permalink:  ../28d517a9-bf36-1a79-c2e7-6356dcd31064@2ndquadrant.com/
Also on:    postgresql.org/message-id/28d517a9-bf36-1a79-c2e7-6356dcd31064@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: <28d517a9-bf36-1a79-c2e7-6356dcd31064@2ndquadrant.com>
  References: <733ecd96-48ed-8d49-15e1-413eb535c4c6@framestore.com> <CAGBW59dUpbSvVHueoYYR3zk04gWPAuutSuLS-bAGPyMbG9Ow0g@mail.gmail.com> <28d517a9-bf36-1a79-c2e7-6356dcd31064@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