Re: Query Failed, out of memory

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Query Failed, out of memory
Дата
Msg-id 20061005155952.GA2482@svana.org
обсуждение исходный текст
Ответ на Query Failed, out of memory  ("Mark Woodward" <pgsql@mohawksoft.com>)
Ответы Re: Query Failed, out of memory  ("Mark Woodward" <pgsql@mohawksoft.com>)
Список pgsql-hackers
On Thu, Oct 05, 2006 at 11:56:43AM -0400, Mark Woodward wrote:
> The query was executed as:
> psql -p 5435 -U pgsql -t -A -c "select client, item, rating, day from
> ratings order by client" netflix > netflix.txt
>
>
> My question, it looks like the kernel killed psql, and not postmaster. The
> postgresql log file complained about a broken pipe.
>
> Question, is this a bug in psql? It took over 4 hours of run time before
> the crash.

Well, psql tried to store the entire resultset in memory at once, and
failed. I'm not sure how many records you were trying to display, but
try to estimate how much memory that would take to store...

What were you trying to do?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

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

Предыдущее
От: "Mark Woodward"
Дата:
Сообщение: Query Failed, out of memory
Следующее
От: AgentM
Дата:
Сообщение: Re: Query Failed, out of memory