Re: [HACKERS] Not enough memory for complex join

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: [HACKERS] Not enough memory for complex join
Дата
Msg-id 36DE8731.A27425A4@trust.ee
обсуждение исходный текст
Ответ на Not enough memory for complex join  (Oleg Broytmann <phd@sun.med.ru>)
Ответы Re: [HACKERS] Not enough memory for complex join  (Oleg Broytmann <phd@sun.med.ru>)
Список pgsql-hackers
Oleg Broytmann wrote:
> 
>    I played with the query, and found I can remove (AND d.city_id = 2). The
> query executes pretty fast (my database is small). I tried to get
> d.city_id:
> 
> SELECT p.subsec_id, d.city_id
>    FROM  positions p, central cn, shops sh, districts d
>       WHERE cn.pos_id = p.pos_id
>       AND   cn.shop_id = sh.shop_id AND sh.distr_id = d.distr_id
>       AND   cn.date_i >= current_date - '7 days'::timespan
> 
> but postgres eats all memory and dies :(((

What does EXPLAIN say ?

--------------------
Hannu


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Oleg Broytmann
Дата:
Сообщение: Not enough memory for complex join
Следующее
От: Oleg Broytmann
Дата:
Сообщение: Re: [HACKERS] Not enough memory for complex join