Re: Query optimisation and sorting on external merge - Mailing list pgsql-general

From Jake Stride
Subject Re: Query optimisation and sorting on external merge
Date
Msg-id c9ce9fab0907290537y110dffb2y8fe148c1d63d5625@mail.gmail.com
Whole thread Raw
In response to Re: Query optimisation and sorting on external merge  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-general
2009/7/29 A. Kretschmer <andreas.kretschmer@schollglas.com>:
> In response to Jake Stride :
>> Hi,
>>
>> I'm trying to optimise a query at the moment, I've added some new
>> indexes to stop seq scans, but I'm now trying to work out if I can
>> stop a join using external sort to speed up the query. I've included
>
> Increase work_mem to force sort in memory.
>

That stops the external storage thanks. I still think I need to
optimise the query though as there are 3 other similar queries which
are unioned together to form a view.

Jake
>
> Andreas

pgsql-general by date:

Previous
From: nha
Date:
Subject: Re: Query optimisation and sorting on external merge
Next
From: mzhang@ilww.com
Date:
Subject: org.postgresql.util.PSQLException: PANIC: could not write to log file 6