Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4A257B5DBD9 for ; Wed, 17 Aug 2011 15:52:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 21150-01 for ; Wed, 17 Aug 2011 18:52:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id A8FDAB5DBE1 for ; Wed, 17 Aug 2011 15:52:00 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QtlDb-0007uM-KE for pgsql-performance@postgresql.org; Wed, 17 Aug 2011 11:51:59 -0700 Date: Wed, 17 Aug 2011 11:51:59 -0700 (PDT) From: hyelluas To: pgsql-performance@postgresql.org Message-ID: <1313607119621-4709415.post@n5.nabble.com> In-Reply-To: <1313184591789-4694681.post@n5.nabble.com> References: <1313184591789-4694681.post@n5.nabble.com> Subject: Re: How to see memory usage using explain analyze ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201108/219 X-Sequence-Number: 44666 Igor, Thank you for the hint, I read about the planner, added "vacuum analyze " to my procedures. There is no join in my query but GROUP BY that is taking all the time and I don't know how to tune it. It gets executed by the procedure, the execution time requirement is < 4 sec, but it takes 8-11 sec against 3 partitions , 9 mln rec each, it goes to 22 sec for 5 partitions. I've been testing PostgreSQL performance for the last 2 months, comparing it whith MySQL, PostgreSQL performance with 5+ mln records on the table with 14 columns is worse. Is 14 columns is a big table for Postgres or 5mln rec is a big table? The whole picture is that there are 2 databases : OLTP & "OLAP" that use to be on different machines and on different databases. The new project requires to put it on one database & machine. I preferred Postgres ( poorly designed oltp would not suffer even more on mysql) and now I'm trying to tune OLAP db. thank you. Helen -- View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-see-memory-usage-using-explain-analyze-tp4694962p4709415.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com.