Re: changing sort_mem on the fly? - Mailing list pgsql-general

From Tom Lane
Subject Re: changing sort_mem on the fly?
Date
Msg-id 3774.1107108315@sss.pgh.pa.us
Whole thread Raw
In response to Re: changing sort_mem on the fly?  ("Jim C. Nasby" <decibel@decibel.org>)
Responses Re: changing sort_mem on the fly?  ("Jim C. Nasby" <decibel@decibel.org>)
List pgsql-general
"Jim C. Nasby" <decibel@decibel.org> writes:
> On Sun, Jan 30, 2005 at 08:50:49PM +1100, Neil Conway wrote:
>> Do you have any thoughts on how to improve it?

> See http://archives.postgresql.org/pgsql-general/2003-06/msg01072.php
> and http://archives.postgresql.org/pgsql-general/2003-06/msg01089.php

All of this falls down on twin problems: (1) we have no portable way to
find out how much RAM is really available, and (2) the planner has to
make a cost estimate for the sort in advance of actual runtime --- which
requires making some assumption about the value of sort_mem that will be
used.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [pgsql-advocacy] MySQL worm attacks Windows servers
Next
From: Tom Lane
Date:
Subject: Re: Freeradius and Postgresql