Re: [INTERFACES] Back end memory consumption (was Front end memory consumption in SELECT)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] Back end memory consumption (was Front end memory consumption in SELECT)
Дата
Msg-id 29675.944181689@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [INTERFACES] Back end memory consumption (was Front end memory consumption in SELECT)  (Douglas Thomson <dougt@mugc.cc.monash.edu.au>)
Ответы Re: [INTERFACES] Back end memory consumption (was Front end memory consumption in SELECT)  (Douglas Thomson <dougt@mugc.cc.monash.edu.au>)
Список pgsql-interfaces
Douglas Thomson <dougt@mugc.cc.monash.edu.au> writes:
> I have just noticed that the back end process swells to
> the total size of all the tables involved in my query for the
> duration of the SELECT (or is it the duration of the declared cursor
> now?).

The life of the cursor, probably, but I'm a little surprised by this.

> To summarise the situation:
>     - I am attempting a join on 9 tables, using a cursor to fetch the
>       selected data
>     - the back end process grows to over 20M while processing my query

What query plan does EXPLAIN show for your SELECT?
        regards, tom lane

************




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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: [INTERFACES] Slow join query optimisation?
Следующее
От: Douglas Thomson
Дата:
Сообщение: Re: [INTERFACES] Back end memory consumption (was Front end memory consumption in SELECT)