From: Andreas Hauser <andreas-postgresql@creative-memory.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13633: ERROR: invalid memory alloc request size
Date: Tue, 22 Sep 2015 20:09:31 +0200
Message-ID: <201509221809.t8MI9VHI030286@sol.creative-memory.de> (raw)
In-Reply-To: <9088.1442940520@sss.pgh.pa.us>
References: <20150922145249.5058.98379@wrigleys.postgresql.org>
<9088.1442940520@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
tgl wrote @ Tue, 22 Sep 2015 12:48:40 -0400:
> 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?
>
> regards, tom lane
Yes and pg_dumpall works.
The dump is 32GB, the machine has 128GB, work_mem = 70G.
After filling the added serial, disk usage more than doubled
to 221GB. Vacuum did not change this.
I had similar problems with 9.4.4, but switched to 9.5. to be able
to fill the new serial field with a sub-select. The query using the
text id gave the same problem, but sometimes it worked (repeatedly
submitting it with pipe to pgsql would sometimes succeed and run
for about an hour).
Cheers
Andreas
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andreas-postgresql@creative-memory.de, tgl@sss.pgh.pa.us
Subject: Re: BUG #13633: ERROR: invalid memory alloc request size
In-Reply-To: <201509221809.t8MI9VHI030286@sol.creative-memory.de>
References: <20150922145249.5058.98379@wrigleys.postgresql.org> <9088.1442940520@sss.pgh.pa.us> <201509221809.t8MI9VHI030286@sol.creative-memory.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox