From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-performance@postgresql.org
Subject: Re: Speed up the query
Date: Sun, 1 Dec 2013 13:27:02 +0100
Message-ID: <20131201122702.GA26157@tux> (raw)
In-Reply-To: <529B265B.5030206@gmx.net>
References: <B097B80F-2D51-4F42-BC0D-5A38CBCD0C01@gmail.com>
<20131201071231.GA4780@tux>
<335A179F-B1A5-4634-998F-BA30ACD84209@gmail.com>
<20131201083541.GA10012@tux>
<980E5A18-104B-46C8-AB98-A66A391C8272@gmail.com>
<529B265B.5030206@gmx.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Torsten Förtsch <torsten.foertsch@gmx.net> wrote:
> I'd try 2 things:
>
> 1) set work_mem to ~100Mb. You don't have to do that globally in
> postgresql.conf. You can set it for the current session only.
>
> set work_mem to '100MB';
>
> Then run your query.
>
> 2) change the common table expression to a subquery:
Yeah, agree.
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
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: akretschmer@spamfence.net
Subject: Re: Speed up the query
In-Reply-To: <20131201122702.GA26157@tux>
* 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