Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egdxH-0007Zq-KN for pgsql-general@arkaria.postgresql.org; Tue, 30 Jan 2018 22:00:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egdxG-00019W-Fy for pgsql-general@arkaria.postgresql.org; Tue, 30 Jan 2018 22:00:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egdxG-00019N-47 for pgsql-general@lists.postgresql.org; Tue, 30 Jan 2018 22:00:38 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1egdxC-00048f-KP for pgsql-general@lists.postgresql.org; Tue, 30 Jan 2018 22:00:37 +0000 Received: by mail-wm0-x22c.google.com with SMTP id 141so4099924wme.3 for ; Tue, 30 Jan 2018 14:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=w4NGHF/mmJF97/bVxXbxgRBHrP1aEPbn1Ap1y0qFTeU=; b=rn+kzl/gEdZgA0i8Lus068ToWetgl77x1/5pv87I8+/f8nyqZIG0EyfeDNS8/kBe1g KJCSLWiXTzwOlyYT4EHu+EJ1E1727s2Yg4Dav28le4kvvSemgy5jKhFy40QgTpxyw0pR fuPfSDPYXAq6zW91u1NhNc2lFkbf+5h2MMlX/DpJAVd4fprdJNtOGKeZcAcsKB0WU3d8 VkjlXfk6j/nl61sDJnWz6pM7u370JVY3VYw7rB733VlVOW1B7/8MmlUAR5qOWzALynJ9 XrhG/lxi0Gfv2YmRG6XVioiczkbt8yhKBsIKDnu/Nev38myFKST6noHggQ8z9GkzQPWE OjlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w4NGHF/mmJF97/bVxXbxgRBHrP1aEPbn1Ap1y0qFTeU=; b=Dc9ORXSKvwk/KHWdsy7OZm/twbQ6R1ZvYItDQlDH2Ri16cZP6FY/MkW8RIDSIISQgW DzTJXg9PUCX15kQ+jqU8TJhRGVhWh9vr5i5aPxfQHteCa4hJGwdqOQhaoGIyc1e0WDGf wJp+c9GxVXSPldEgB9ZfLHbU1Rpm44GfACKRszglLtZ/fzcClBff61utJOwHkFdLTg9R PxNuHnQ2rpZArDKAorG0MID4sL6SDN+Bi5+p8KbO410umZ2DvL+C/IekORmmsYP/KrOH LmYLm+0y3cVDDi5pcBFgFTp/JuEHLPpDzDkL5ayj2u3QjAA3o96Gsa0pXmxIeXm1XOpz lzEw== X-Gm-Message-State: AKwxytdwDfBzYXps4kxE3Rr3U8gpl5WfZSp5AXt4qkJbB/xOXsOVxt2K zMFiSp8hlafHVKuWXZiPnHra5qjntKcG002PvcxDTGCOLH/vywB/sjmU3rLL97GbNnf1w72ZBG+ QbfcasC+FYoVDz+Fra1v0bnks0gtsySkfoT6suPuO+MDtbW/+jya8EUiEzRfSYygtPFsAlf72cP gGHkBROuglZpsL3iXK X-Google-Smtp-Source: AH8x227E4DajrTm3gk3SJAAQex/MIpskXR5W4ir9tAw1UJ0yodgGUvPRQHsw04fRp8ZlqvpoyQfcVg== X-Received: by 10.80.158.110 with SMTP id z101mr53175215ede.89.1517349632546; Tue, 30 Jan 2018 14:00:32 -0800 (PST) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id j17sm8757941ede.84.2018.01.30.14.00.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 14:00:31 -0800 (PST) Subject: Re: ERROR: invalid memory alloc request size 1073741824 To: Jan Wieck , Stefan Blanke Cc: pgsql-general@lists.postgresql.org References: <733ecd96-48ed-8d49-15e1-413eb535c4c6@framestore.com> From: Tomas Vondra Message-ID: <28d517a9-bf36-1a79-c2e7-6356dcd31064@2ndquadrant.com> Date: Tue, 30 Jan 2018 23:00:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 01/30/2018 10:43 PM, Jan Wieck wrote: > > > On Tue, Jan 30, 2018 at 12:35 PM, Stefan Blanke > > 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