Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aGmS0-0006nx-3F for pgsql-performance@arkaria.postgresql.org; Wed, 06 Jan 2016 11:40:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aGmRz-0003T1-D8 for pgsql-performance@arkaria.postgresql.org; Wed, 06 Jan 2016 11:40:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aGmRy-0003Sm-S7 for pgsql-performance@postgresql.org; Wed, 06 Jan 2016 11:40:23 +0000 Received: from mailout01.ims-firmen.de ([213.174.32.96]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aGmRv-0001Rp-MV for pgsql-performance@postgresql.org; Wed, 06 Jan 2016 11:40:21 +0000 Received: from mailin02.ims-firmen.de ([192.168.1.142]) by mailout01.ims-firmen.de with esmtp (envelope-from ) id 1aGmRs-00055G-hW; Wed, 06 Jan 2016 12:40:16 +0100 Received: from [213.174.32.191] (helo=oxweb01.ims-firmen.de) by mailin02.ims-firmen.de with esmtpsa (TLSv1:RC4-MD5:128) (envelope-from ) id 1aGmRs-0005Mf-4g; Wed, 06 Jan 2016 12:40:16 +0100 Date: Wed, 6 Jan 2016 12:40:16 +0100 (CET) From: Andreas Kretschmer Reply-To: Andreas Kretschmer To: Tom McLoughlin , pgsql-performance@postgresql.org Message-ID: <573633884.42831.1452080416423.JavaMail.open-xchange@oxweb01.ims-firmen.de> In-Reply-To: References: Subject: Re: Materialized view performance problems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.6.2-Rev12 X-Originating-Client: com.openexchange.ox.gui.dhtml X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org > Tom McLoughlin hat am 6. Januar 2016 um 09:08 > geschrieben: > > > > As you can see below it's a big query, and I didn't want to overwhelm > everyone with the schema, so let me know what bits you might need to help! > > Any help improving the performance will be greatly appreciated. can you show us the EXPLAIN ANALYSE - Output? I see a LOT of seq-scans, maybe you should create some indexes. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance