From: | David Rowley <david(dot)rowley(at)2ndquadrant(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | andreas-postgresql(at)creative-memory(dot)de, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #13633: ERROR: invalid memory alloc request size |
Date: | 2015-09-22 22:57:25 |
Message-ID: | CAKJS1f_sxPyBHF6=nEYwPJdKKDNjVDP91b_EJApfyGTei=ViDw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On 23 September 2015 at 04:48, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> andreas-postgresql(at)creative-memory(dot)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.
The patch attached to that thread has a bug in the following line
+ memset(hashtable->buckets, 0, sizeof(nbuckets * sizeof(HashJoinTuple)));
It should be:
+ memset(hashtable->buckets, 0, nbuckets * sizeof(HashJoinTuple));
Regards
David Rowley
--
David Rowley http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-09-22 23:28:34 | Re: BUG #13633: ERROR: invalid memory alloc request size |
Previous Message | Tom Lane | 2015-09-22 19:58:16 | Re: BUG #13630: initdb - libreadline.so.6 symbol BC error |