Re: Sort causes system to freeze

From: PFC <lists(at)peufeu(dot)com>
To: "Richard Huxton" <dev(at)archonet(dot)com>, "Craig James" <craig_james(at)emolecules(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Sort causes system to freeze
Date: 2008-12-02 11:54:22
Message-ID: op.uli90wskcigqcu@soyouz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


>> Maybe this is an obviously dumb thing to do, but it looked reasonable to
>> me.
>
> Looks reasonable here too - except I'm not sure what I'd do with 2
> million rows of sorted table in my console. I'm guessing you're piping
> the output into something.

Probably it's psql that is choking from buffering the rows.
If you want to fetch that huge amount of data into a user application, a
CURSOR is the best way to do so.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Andrus 2008-12-02 12:06:36 analyzing intermediate query
Previous Message Tom Lane 2008-12-02 10:34:13 Re: Sort causes system to freeze