Re: Query error: could not resize shared memory segment - Mailing list pgsql-general

From Thomas Munro
Subject Re: Query error: could not resize shared memory segment
Date
Msg-id CAEepm=188GMLQPh+r0MvU9Jc8Mq6qboXiRd0m1yVmPRRBXqLDQ@mail.gmail.com
Whole thread Raw
In response to Re: Query error: could not resize shared memory segment  (Thuc Nguyen Canh <thucnguyencanh@gmail.com>)
Responses Re: Query error: could not resize shared memory segment
List pgsql-general
On Wed, Jan 3, 2018 at 5:22 PM, Thuc Nguyen Canh
<thucnguyencanh@gmail.com> wrote:
> Here is the query plan of a query that causes above issue for any
> random_page_cost < 3 (I keep the work_mem by default)
>
> 'Sort  (cost=9441498.11..9542397.83 rows=40359886 width=64) (actual
> time=33586.588..33586.590 rows=4 loops=1)'

I guess that must be EXPLAIN ANALYZE, because it includes "actual"
time, so it must be the plan when you set random_page_code >= 3,
right?  Otherwise it would raise the error.  Can you now set it to  <
3 and do just EXPLAIN (no ANALYZE) so that we can see the failing plan
without trying to run it?  I'm guessing it's different, because the
plan you showed doesn't look like it would want 50MB of DSM.

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


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Query error: could not resize shared memory segment
Next
From: Thuc Nguyen Canh
Date:
Subject: Re: Query error: could not resize shared memory segment