Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRkcq-0005VB-3G for pgsql-performance@arkaria.postgresql.org; Tue, 27 Nov 2018 21:10:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRkco-00074S-VN for pgsql-performance@arkaria.postgresql.org; Tue, 27 Nov 2018 21:10:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRkco-000746-Gl for pgsql-performance@lists.postgresql.org; Tue, 27 Nov 2018 21:10:30 +0000 Received: from mail-it1-x142.google.com ([2607:f8b0:4864:20::142]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRkcl-0001B5-0y for pgsql-performance@lists.postgresql.org; Tue, 27 Nov 2018 21:10:29 +0000 Received: by mail-it1-x142.google.com with SMTP id g85so868098ita.3 for ; Tue, 27 Nov 2018 13:10:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=FwiPWGc/afV4R8RjCwkLy18BIcbxhrbNTD3+s/ryoC8=; b=vOFPBDNde1oCq5kS0ss0e2e9Yg3yJwnjnJK6LOknaECjp50join1+jHxMZsBfwyNSw Ck7iEWVXrvTVorAXzVHPq4jPW11T6ooD3AsVi2zMpt1We7Sayq3Unlo9WgpLkiPxdynh G1y3F+iifXWXMUQZ488r43Zx1p/N98JE77oBz5eGRhE6oBfwun4szu/DQAHkyrp99Rmp j6Vm76Z5i1hkOXFkRHGRxV+fsjKkMkjD4k5/WWeCdaK/8gWcyoDlvB+hejQW9pIjjQct lRKSJIIuJX4R57C8wZd+U+UMM22OlapETGCYKTWGXiZXsCkhvSEuAj7S+ealgVv0x24C bE2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FwiPWGc/afV4R8RjCwkLy18BIcbxhrbNTD3+s/ryoC8=; b=LT1fxmI+h/738CJugqpK6OzT6KONnlYg2Hy0GoYzYfLM7MSiJwA0Eml5I/fGGtmuW9 DrLFgphYBfe5OBiwRq2nYjIhHNI/gmLgNniDO4eqLvoW+S0r29gSr1SEs8NC2Nmy3M+P F0ZOeTII42tKNHrN9Wc/HGAQ3XNU+Ec8xgLHjURxFr0GuS0G1EpKVoGyisDFnXvtqGPZ 4aetTGmGOx6QQmkApqyHSO+WiKs3Km4bIyxccmuO/C6jDD7bGkFQfzKxRhFlVs/UNOWH PvoR2Eb+p7vSd0gymD5Abrr8PD6KXTJ2SY7cNeZw1L1m0r56h9PnfR44EkNxqTYb9eN+ iOxQ== X-Gm-Message-State: AA+aEWYlqCwZn7UhSZI0d0XK+Cm5MHrmfNCM8821XsHssVCc56WBV7mB ZYBPGM8RutDye5hNWtdhv4kAKQ== X-Google-Smtp-Source: AFSGD/V0YRhYv2C/4cfYtPua00MDxAr7LibYltOC348ZSPEUWAYBSagQphhawBABjJ5ttHrfL/zh+w== X-Received: by 2002:a24:3842:: with SMTP id b63mr590351ita.19.1543353024960; Tue, 27 Nov 2018 13:10:24 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id 142-v6sm177979itw.40.2018.11.27.13.10.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 13:10:24 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id E56E78025C4; Tue, 27 Nov 2018 15:10:22 -0600 (CST) Date: Tue, 27 Nov 2018 15:10:22 -0600 From: Justin Pryzby To: Sanyo Moura Cc: jeff.janes@gmail.com, pgsql-performance@lists.postgresql.org Subject: Re: Query with high planning time at version 11.1 compared versions 10.5 and 11.0 Message-ID: <20181127211022.GA30707@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Nov 27, 2018 at 06:30:04PM -0200, Sanyo Moura wrote: >>> I'm running performance tests for my application at version 11.1 and >>> encountered >>> queries with high planning time compared to the same planning, running at >>> versions 10.5 and 11.0. > > Below is the script that creates one partition table: Would you send the CREATE TABLE or \d for precio, produto, and almacen ? Are the 2 referenced tables also empty or can you reproduce the problem if they are (like in a separate database) ? Do you still have an instance running 10.5 ? Or did you find the planning time in logs (like autoexplain) ? Are any of your catalog tables bloated or indexes fragmented ? I assume catalog tables and their indices should all be much smaller than shared_buffers. SELECT relpages, relname FROM pg_class WHERE relnamespace='pg_catalog'::regnamespace ORDER BY 1 DESC LIMIT 9; Can you compare pg_settings between the servers ? Either from a live server or historic postgresql.conf or from memory if need be. https://wiki.postgresql.org/wiki/Server_Configuration Justin