Re: BUG #15041: dsa alloc_object null pointer - Mailing list pgsql-bugs

From Thomas Munro
Subject Re: BUG #15041: dsa alloc_object null pointer
Date
Msg-id CAEepm=2E63D_+q1i+VMsEaNZ15j=e1S-RGgwGbYcPsZ3prHcBQ@mail.gmail.com
Whole thread Raw
In response to Re: BUG #15041: dsa alloc_object null pointer  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-bugs
On Thu, Feb 1, 2018 at 9:04 AM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> The cause is running out of DSM slots, but not handing that
> case correctly.  I think this implies that you're running queries with
> a lot of Gather [Merge] nodes in them? The number of DSM slots is 64 +
> 2 * max_connections, so one workaround is to crank up max_connections,
> and another is just to disable parallelism for that query.

Or alternatively it could be running out of workers due to the
max_parallel_workers, max_worker_processes limits, which on reflection
may be more likely (the other cases I ran into like this ran out of
DSM slots, because they had very high numbers of Gather nodes).
Either way, it's running out of some resource needed for parallel
query and falling back to non-parallel execution, but Bitmap Heap Scan
had failed to anticipate that possibility.

-- 
Thomas Munro
http://www.enterprisedb.com


pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BUG #15041: dsa alloc_object null pointer
Next
From: Bruce Momjian
Date:
Subject: Re: [BUGS] BUG #14898: pg_upgrade documentation is misleading