Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YWWKL-0005sh-DD for pgsql-performance@arkaria.postgresql.org; Fri, 13 Mar 2015 20:37:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YWWKK-0000Ma-TB for pgsql-performance@arkaria.postgresql.org; Fri, 13 Mar 2015 20:37:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YWWKK-0000MR-2r for pgsql-performance@postgresql.org; Fri, 13 Mar 2015 20:37:00 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YWWKF-0003Dy-Ol for pgsql-performance@postgresql.org; Fri, 13 Mar 2015 20:36:58 +0000 Received: by wivr20 with SMTP id r20so8920208wiv.3 for ; Fri, 13 Mar 2015 13:36:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:organization:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=xhbcOXD/b10S5o5SX5khmisNCVHVye53A0X9ikB8jdk=; b=CVYRqUL5qyx6lPgQNS2UBA424NLT0jsp5BRqwz9aWWd6+K4ZZitlhES+tPNCv/ce91 x4dsXnQfp5DyHTjTJGkGW3DiNGetcDWFEokhkNW5sg/GkbOVQbS9Tkmo+nh/pR2nCyw1 Toqdb5uRHE/4v/fMpLLMOHUZmyN2RrIBDDwgAcCRAmRJlNx51waNUaIKf856HF1V86gV SUfBbD1accI7tr6E/Te/rL5hTUEeFpp2zIQ+wurYBQg+Uj0ESlorbWYSH3awhDXC4RYH 0K9/zShkjaSmK95T3iaq9wCXhjLbSZwFI6UJJ0u/YgK4XN4CN4fcZvLEN5peGP34Mo2u xdew== X-Gm-Message-State: ALoCoQk8syAxDoTEyKrKr8SEE+S9LQxS2l8Vmr4hpF5NezlrHUppQpQjuCk55xSeQ7lmBmRw3IBWKQpGNe0efTQyE0QfeTV+DwK8WoaF3COmGIlXu35kd95YF4OFLxiOYmwPodKzSTrZlsZFulLrvyBQdIWgQRYU1DzTSG9WdsmRRiiSfzuI2nj8vQxitl+vAT7czzE4suUv X-Received: by 10.180.82.129 with SMTP id i1mr99460483wiy.77.1426279013764; Fri, 13 Mar 2015 13:36:53 -0700 (PDT) Received: from [192.168.1.163] (ip-78-45-139-138.net.upcbroadband.cz. [78.45.139.138]) by mx.google.com with ESMTPSA id kj8sm4270951wjc.29.2015.03.13.13.36.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 13:36:53 -0700 (PDT) Message-ID: <55034A48.4040409@2ndquadrant.com> Date: Fri, 13 Mar 2015 21:36:24 +0100 From: Tomas Vondra Organization: 2ndQuadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Performance issues References: <84a6fe4be04c3ef0a714851977860ac8@mail.gmail.com> <160b8780d89add7f23c4eb9c3debb99d@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 Hi, On 13.3.2015 20:59, Vivekanand Joshi wrote: > I am really worried about the performance of PostgreSQL as we have > almost 1.5 billion records in promotion history table. Do you guys In the previous message you claimed the post table has 10M rows ... > really think PostgreSQL can handle this much load. We have fact > tables which are more than 15 GB in size and we have to make joins > with those tables in almost every query. That depends on what performance you're looking for. You'll have to provide considerably more information until we can help you. You might want to check this: https://wiki.postgresql.org/wiki/Slow_Query_Questions You have not provided the full query, just a query apparently referencing views, so that the actual query is way more complicated. Also, plain EXPLAIN is not really sufficient, we need EXPLAIN ANALYZE. regards -- Tomas Vondra 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