From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-performance@postgresql.org
Subject: Re: Slow query with big tables
Date: Thu, 25 Aug 2016 12:36:19 +0200
Message-ID: <20160825103619.GA14979@tux> (raw)
In-Reply-To: <CAOLG3nqaw3bymQAAZFLhnZbY8=WMd_Yiy4stZuiMGdHk-3OANg@mail.gmail.com>
References: <CAOLG3nqaw3bymQAAZFLhnZbY8=WMd_Yiy4stZuiMGdHk-3OANg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Tommi Kaksonen <t2nn2t@gmail.com> wrote:
> ---Version---
> PostgreSQL 9.2.1, compiled by Visual C++ build 1600, 64-bit
current point release for 9.2 is 9.2.18, you are some years behind.
The plan seems okay for me, apart from the on-disk sort: increase
work_mem to avoid that.
If i where you i would switch to PG 9.5 - or wait for 9.6 and parallel
execution of aggregates.
Regards, Andreas Kretschmer
--
Andreas Kretschmer
http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
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: Slow query with big tables
In-Reply-To: <20160825103619.GA14979@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