Re: Query error: could not resize shared memory segment

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: Query error: could not resize shared memory segment
Дата
Msg-id CAEepm=188GMLQPh+r0MvU9Jc8Mq6qboXiRd0m1yVmPRRBXqLDQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Query error: could not resize shared memory segment  (Thuc Nguyen Canh <thucnguyencanh@gmail.com>)
Ответы Re: Query error: could not resize shared memory segment  (Thuc Nguyen Canh <thucnguyencanh@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Query error: could not resize shared memory segment
Следующее
От: Thuc Nguyen Canh
Дата:
Сообщение: Re: Query error: could not resize shared memory segment