pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Frits Jalvingh <jal@etc.to>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15225: [XX000] ERROR: invalid DSA memory alloc request size 1073741824 / Where: parallel worker
Date: Wed, 06 Jun 2018 10:38:13 -0400
Message-ID: <6681.1528295893@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKhTGFWcOeOatgjqdYZRr9qfxFQ8vauzdw-42rd+gm2S-PdZUg@mail.gmail.com>
References: <152802081668.26724.16985037679312485972@wrigleys.postgresql.org>
	<CAEepm=1BYtYQSBJ7c=LrePT52Y5D+BeFjjHWOx3ACHDJJHBAig@mail.gmail.com>
	<CAKhTGFUro3Cf0qzmRHZ5nK7MrH2THA26RNgHH2q5+4VaoxCKPw@mail.gmail.com>
	<CAEepm=1nemj1wGLsnNrVqBLmqV9N6+6WToo=prGxAXafPYiTrA@mail.gmail.com>
	<CAKhTGFWcOeOatgjqdYZRr9qfxFQ8vauzdw-42rd+gm2S-PdZUg@mail.gmail.com>

Frits Jalvingh <jal@etc.to> writes:
> As far as that explain thing goes, the odd thing seems to be that /without/
> the explain the database uses a non parallel plan. If I execute the exact
> same statement without explain I see one postgres process running at 100%
> for a long time, then it produces its output proper.

This doesn't prove that the thing is non-parallel, only that the work is
badly distributed.  You might try cranking up log_min_messages to the
point that worker-process launching gets logged, and then see whether
or not it's really non-parallel.

> - explain seems to somehow influence the plan that is being made.

That should absolutely *not* be the case.

> - there is a big problem with postgres memory assignment, because with the
> increase of parallelism having work_mem work per process means that you
> cannot effectively control the amount of memory that postgres uses anymore.

work_mem has always been like that.  You cannot set it to any very large
fraction of your system's available memory, at least not globally across
a whole bunch of queries.

			regards, tom lane




view thread (15+ messages)  latest in thread

Message-ID: <6681.1528295893@sss.pgh.pa.us>
Permalink:  ../6681.1528295893@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6681.1528295893@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, jal@etc.to, thomas.munro@enterprisedb.com
  Subject: Re: BUG #15225: [XX000] ERROR: invalid DSA memory alloc request size 1073741824 / Where: parallel worker
  In-Reply-To: <6681.1528295893@sss.pgh.pa.us>
  References: <152802081668.26724.16985037679312485972@wrigleys.postgresql.org> <CAEepm=1BYtYQSBJ7c=LrePT52Y5D+BeFjjHWOx3ACHDJJHBAig@mail.gmail.com> <CAKhTGFUro3Cf0qzmRHZ5nK7MrH2THA26RNgHH2q5+4VaoxCKPw@mail.gmail.com> <CAEepm=1nemj1wGLsnNrVqBLmqV9N6+6WToo=prGxAXafPYiTrA@mail.gmail.com> <CAKhTGFWcOeOatgjqdYZRr9qfxFQ8vauzdw-42rd+gm2S-PdZUg@mail.gmail.com> <6681.1528295893@sss.pgh.pa.us>

* 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