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