Re: ERROR: invalid memory alloc request size 1073741824 - Mailing list pgsql-general

From Tomas Vondra
Subject Re: ERROR: invalid memory alloc request size 1073741824
Date
Msg-id 28d517a9-bf36-1a79-c2e7-6356dcd31064@2ndquadrant.com
Whole thread Raw
In response to Re: ERROR: invalid memory alloc request size 1073741824  (Jan Wieck <jan@wi3ck.info>)
Responses Re: ERROR: invalid memory alloc request size 1073741824  (Stefan Blanke <stefan.blanke@framestore.com>)
List pgsql-general

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


pgsql-general by date:

Previous
From: Ken Tanzer
Date:
Subject: Re: Alter view with dependence without drop view!
Next
From: Thomas Kellerer
Date:
Subject: Re: Alter view with dependence without drop view!