Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zef3H-00075Z-Cc for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Sep 2015 08:05:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zef3G-0002pD-Ou for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Sep 2015 08:05:18 +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) (envelope-from ) id 1Zef2e-00024g-3E for pgsql-bugs@postgresql.org; Wed, 23 Sep 2015 08:04:40 +0000 Received: from sol.creative-memory.de ([87.230.86.242]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zef2b-0000Eh-GD for pgsql-bugs@postgresql.org; Wed, 23 Sep 2015 08:04:39 +0000 Received: from sol.creative-memory.de (localhost [127.0.0.1]) by sol.creative-memory.de (Postfix) with ESMTP id 09BBA20225; Wed, 23 Sep 2015 10:04:36 +0200 (CEST) Received: (from andy@localhost) by sol.creative-memory.de (8.14.4/8.14.4/Submit) id t8N84ZvD000582; Wed, 23 Sep 2015 10:04:35 +0200 Date: Wed, 23 Sep 2015 10:04:35 +0200 Message-Id: <201509230804.t8N84ZvD000582@sol.creative-memory.de> User-Agent: Emai/0.0.7 Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline References: <9088.1442940520@sss.pgh.pa.us> In-Reply-To: From: Andreas Hauser Subject: Re: BUG #13633: ERROR: invalid memory alloc request size To: "David Rowley" CC: , "Tom Lane" X-License: GPL X-Addicted: yeah X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org david.rowley wrote @ Wed, 23 Sep 2015 10:57:25 +1200: > > On 23 September 2015 at 04:48, Tom Lane wrote: > > > andreas-postgresql@creative-memory.de writes: > > > SELECT G.MarkerID,G.Allel1,G.Allel2, count (G.TierLIDint) as nH > > > FROM GenotypHD as G, TiereInSets as TS, Marker as M > > > WHERE TS.TierSetID='HD.09.15' and TS.TierLIDint=G.TierLIDint and > > > M.Version='3' and M.MarkerID=G.MarkerID and G.Allel1<>G.Allel2 > > > GROUP BY G.MarkerID,G.Allel1,G.Allel2; > > > > > ERROR: invalid memory alloc request size 1073741824 > > > > FWIW, I could not reproduce this on the basis of the supplied information, > > ie just creating the tables and running this query does not do anything > > surprising. It looks like possibly a corrupt-data issue --- can you do > > "select * from" each table without problems? > > > > > This seems related to this > http://www.postgresql.org/message-id/9A28C8860F777E439AA12E8AEA7694F8010F6F3F@BPXM15GP.gisp.nec.co.jp > > work_mem, I believe, must be higher than 1GB to trigger this. > I can confirm that it works when work_mem is reduced to 1GB. Cheers and thanks Andreas -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs