Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5vXo-00042j-Mt for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Apr 2018 15:50:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f5vXn-00050m-5V for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Apr 2018 15:50:51 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5vXm-00050d-Pi for pgsql-hackers@lists.postgresql.org; Tue, 10 Apr 2018 15:50:50 +0000 Received: from mail-it0-x244.google.com ([2607:f8b0:4001:c0b::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f5vXi-0001YD-2l for pgsql-hackers@lists.postgresql.org; Tue, 10 Apr 2018 15:50:49 +0000 Received: by mail-it0-x244.google.com with SMTP id t192-v6so15205341itc.1 for ; Tue, 10 Apr 2018 08:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QC0Eicc8JfZOHhhouNzy4l/jqHsDBI+PF/ZXhDfrZtE=; b=MMxyEDF9plDEZwztG7027713/bm6gW9DImFeoZB8C1Ex1t8Qe+Y98nk00rAWrXYQPd 3i5XmhCcx+OBGCw1NMC+5FzqT8ZEg38vQIy8+FtjiV482ZAcWQJdEP5wNeCVqvNIlyNQ LRaFPo6SBjA7uiyj+ub6NMJOOhneEqDSMJvqcLgQfalpfVX0mnB+XFrZLCtf8N7Myvdr d+lgc1esvJvvJ1wdpINFN1alxxr5gByWXfsdxdnPlUsHCrYJq+608KSp+yyb9XZpjBru pDCjry361edy69kmOFangBXZa5tO7ei25yoAXKtSfWBopXY8FnQGbPg0oBX1hB5NJ8AK dOZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QC0Eicc8JfZOHhhouNzy4l/jqHsDBI+PF/ZXhDfrZtE=; b=q5lzemGzU+yBbsXR/5HZdy+6cACD+CPV2saNYfIWu1VOLT6ecmaojGekbAXgwmhxUz 2aretWPIQa2DDzz3JN7J8GmpEtww8JmC6t7iU4L49e2vWW96Rb+m+IGfFg0OrZ0d7Fhj iJj3iJ61bHNqcyMbUamhRxZskW8DRsup1qmxIF/2Y5Ew+yWS1xspD+eG0FC93ECA9z7s NtXFEYmhtH6lFtdR1txXvPf2ke1WqGaWwAR/50UdH14FgqHac8fKn4TEryIZtHjlNSnI Tw56BwroPPpVENfA/9nMkFDcB5ROJBXtscq4c4TYn0+K/P3hhAUBA/2+R92dvQWzDn56 2PlA== X-Gm-Message-State: ALQs6tApkwey6LhLgnk9YK8BMlCElYi/2nz19LjtyBxtcSXyd6dG2ZnL Jab7SxX8N67MPjZssy3Q+nVE7+iNMRYXdcP0yLCFIQ== X-Google-Smtp-Source: AIpwx4+52k3Scs7Oz3eqRuH2k+4G2iP3t0h4DSix2JK3MLmYqFQGmrs7oZ3BXXReBk2MKjB5XLy3Rvhl2i81ZHXFuBA= X-Received: by 2002:a24:4702:: with SMTP id t2-v6mr70364itb.74.1523375443692; Tue, 10 Apr 2018 08:50:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.182.24 with HTTP; Tue, 10 Apr 2018 08:50:43 -0700 (PDT) In-Reply-To: <20180410151417.zphx6l7t5j4vdgmh@alvherre.pgsql> References: <28986.1523311382@sss.pgh.pa.us> <20180410151417.zphx6l7t5j4vdgmh@alvherre.pgsql> From: David Rowley Date: Wed, 11 Apr 2018 03:50:43 +1200 Message-ID: Subject: Re: pgsql: Support partition pruning at execution time To: Alvaro Herrera Cc: Tom Lane , Andrew Gierth , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11 April 2018 at 03:14, Alvaro Herrera wrote: > 2. Do we want to revert Andrew's test stabilization patch? If I > understand correctly, the problem is the inverse of what was diagnosed: > "any running transaction at the time of the test could prevent pages > from being set as all-visible". That's correct, but the test doesn't > depend on pages being all-visible -- quite the contrary, it depends on > the pages NOT being all-visible (which is why the HeapFetches counts are > all non-zero). Since the pages contain very few tuples, autovacuum > should never process the tables anyway. I think it's probably a good idea to revert it once the instrumentation is working correctly. It appears this found a bug in that code, so is probably useful to keep just in case something else breaks it in the future. I don't think there is too much risk of instability from other sources. There's no reason an auto-vacuum would trigger and cause a change in heap fetches. We only delete one row from lprt_a, that's not going to trigger an auto-vacuum. -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services