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 1h761E-0001CN-6A for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Mar 2019 22:18:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h761B-0003ZN-J7 for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Mar 2019 22:18:33 +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 1h761B-0003ZG-C8 for pgsql-hackers@lists.postgresql.org; Thu, 21 Mar 2019 22:18:33 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7617-0002nz-Tr for pgsql-hackers@postgresql.org; Thu, 21 Mar 2019 22:18:32 +0000 Received: by mail-qt1-x842.google.com with SMTP id p20so420543qtc.9 for ; Thu, 21 Mar 2019 15:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=rJ0NdqnBNPy0OrePrpHVvM6p03Uek+8+pZyH2xunAcA=; b=coqiLgxvq69n/mI+hZva7olLJyeDCOx+BwqVIr6/Lxdcp9Pqp97PZo81+waJGN+Y0R RfxavPS2+WSMvPoFvgWLZ8E/6SqZJFja1gpYzMpXK9O8rVgy8O71FrOsPj0U4NRZVB7S ix18nPD0nOTs8HbNBJCAHvlfdRKM93+SfVfvTeZC3RLQ3lARtTt0D/7vZcBuEPAUYMPf ePOFWSXlvrOS9KD8xBI4ZE6xhayuEqvS+cRbiBjXFzeEvu0Y72t443WgLQ0gweSIlcoA Tn9g18VxjWLb+7I6ezjNZPJteK8c/VQThAUxxRxS2/tQiUeXTS5Ns0Su3MRxCFOQeCAh SQbQ== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=rJ0NdqnBNPy0OrePrpHVvM6p03Uek+8+pZyH2xunAcA=; b=DLzoTMmNIG8hOlN3+suq6vBfN7Da3qAKdGD8lPBC2vxTSW05Bjiczh9tUnRHqFmUnv MA+zEMci5JmAFhQZDrzdvw5nPpHjh+HvuRN63gdd4+rQgs/hK0zxo165bHzavJEDutVi 3vf39IOfKuI7BQZOo0eklY4688ebNWQk3Hp4+/QrSIaZFk2nRFbIPQlhk1bWZfLgM4Ap PckGDidEF0K80bvxeaKd2gqibdoXihOFgwOFrR21ABsYVWQe7+0YNipOFBoheVfZjXsc 9bwb2TyOtQE8xTP1fGQfvbpdyMEdJmHbb9q9SErJ+Kyw8mPRm24iq+/78lOuY+ztSnwR bI9Q== X-Gm-Message-State: APjAAAX/MdOhGWf4M8eaOhHjar+cZDQf4wLK7F2pvjDkxB5gQMgJXcMa Q2F4EN7uOMWZl5pQu+wQ91c5eg== X-Google-Smtp-Source: APXvYqy3NfIVTA521qpfFaFxbTyWYf8Kflq1+rPS8Q7J4gAXOqDTzPhYLMcMkoaAytIeMEnWwqtPwQ== X-Received: by 2002:ac8:2f11:: with SMTP id j17mr5374100qta.334.1553206708243; Thu, 21 Mar 2019 15:18:28 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id w62sm3653556qkd.56.2019.03.21.15.18.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 15:18:27 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id B63CA120785; Thu, 21 Mar 2019 19:18:24 -0300 (-03) Date: Thu, 21 Mar 2019 19:18:24 -0300 From: Alvaro Herrera To: Jesper Pedersen Cc: Amit Langote , Pg Hackers Subject: Re: partitioned tables referenced by FKs Message-ID: <20190321221824.GA29134@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <017a4163-f350-723a-bdcc-48f9ef1d235d@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Jesper On 2019-Mar-21, Jesper Pedersen wrote: > running > > pgbench -M prepared -f select.sql .... > > I'm seeing 82.64% spent in GetCachedPlan(). plan_cache_mode is auto. Hmm, I can't reproduce this at all ... I don't even see GetCachedPlan in the profile. Do you maybe have some additional patch in your tree? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services