Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XBRJ2-0005m4-Oc for pgsql-performance@arkaria.postgresql.org; Sun, 27 Jul 2014 16:28:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XBRJ2-00015B-9G for pgsql-performance@arkaria.postgresql.org; Sun, 27 Jul 2014 16:28:16 +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 1XBRJ1-000154-IW for pgsql-performance@postgresql.org; Sun, 27 Jul 2014 16:28:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XBRIw-0002DO-9Y for pgsql-performance@postgresql.org; Sun, 27 Jul 2014 16:28:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s6RGS7wD024565; Sun, 27 Jul 2014 12:28:07 -0400 From: Tom Lane To: Rural Hunter cc: "pgsql-performance@postgresql.org" Subject: Re: Very slow planning performance on partition table In-reply-to: <53D51E49.102@gmail.com> References: <53CFB6BC.4050606@gmail.com> <25010.1406253203@sss.pgh.pa.us> <53D26875.2080604@gmail.com> <53D51E49.102@gmail.com> Comments: In-reply-to Rural Hunter message dated "Sun, 27 Jul 2014 23:44:09 +0800" Date: Sun, 27 Jul 2014 12:28:07 -0400 Message-ID: <24564.1406478487@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 Rural Hunter writes: >> Does that indicate something? seems it's waiting for some lock. Yeah, that's what the stack trace suggests. Have you looked into pg_locks and pg_stat_activity to see which lock it wants and what's holding said lock? regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance