From: PFC <lists@peufeu.com>
To: Richard Huxton <dev@archonet.com>
To: Craig James <craig_james@emolecules.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Sort causes system to freeze
Date: Tue, 02 Dec 2008 12:54:22 +0100
Message-ID: <op.uli90wskcigqcu@soyouz> (raw)
In-Reply-To: <493506E8.8010304@archonet.com>
References: <b72893ad0811252007h33cf477dx54d5468705facaaa@mail.gmail.com>
<8763maouy9.fsf@oxford.xeocode.com>
<b72893ad0811270925n2ea1a586ked1d3c1fdaf8dba8@mail.gmail.com>
<4934CC58.1050309@emolecules.com>
<493506E8.8010304@archonet.com>
>> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: lists@peufeu.com, dev@archonet.com, craig_james@emolecules.com
Subject: Re: Sort causes system to freeze
In-Reply-To: <op.uli90wskcigqcu@soyouz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox