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 1hxYfy-00019A-D7 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Aug 2019 15:25:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hxYfx-0005kO-7Y for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Aug 2019 15:25:29 +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 1hxYfw-0005jr-P2 for pgsql-hackers@lists.postgresql.org; Tue, 13 Aug 2019 15:25:28 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hxYft-0000AH-5a for pgsql-hackers@lists.postgresql.org; Tue, 13 Aug 2019 15:25:27 +0000 Received: by mail-qt1-x843.google.com with SMTP id b11so6939475qtp.10 for ; Tue, 13 Aug 2019 08:25:24 -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=CV3Vt83J1fTvT95OiJk84DD0dncr103huu7Xcvcu8Cg=; b=nDJO8JpF+flEBb0kuTChYT/YWJ4jdT03MD3RFb1QefOref0ZadYL/c7j3b1YaR7/QJ i2mAd+AjYOcnYsDIcka8LxXYZ4BmuVUWvhPqf5DOPnS0Fb1yc2rtQQ+ygSxc0A1z9Da7 XJhBZMzywGZhOvmmEeRhVISNtQH+NQ+t6eO/AQyHLT8oR2oWa1+NiYJCU56n+sIOLLBW lkS55x53zRGUkM+mQzP+qx12rgl8qlrAgB8l+3e4Ju9AkxwQD4c8+393nyXwwHHTRNga Zwout9jxwYb/RiNMQtaVJM+VSGzRlMV2li937C0WQu5dBpYIb9OjY0bY7dyRKKoZnPDd OsGw== 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=CV3Vt83J1fTvT95OiJk84DD0dncr103huu7Xcvcu8Cg=; b=KjmTM0UZqaJXVyLAu7lOH6x2NaN0V4xstKE3feK8Shp2pBPCycmJt/0FmE5CEQpTSa ztP/0/mXzh8RIsGBaE49+6zmDn/kxZj6vAMlPaxvOt1TfvaC9RzgObK8yCl3fcXo6Avm R4JTWvOH5F8E6hfk7IFVKfNhJyjLdAkg3uYKmijWM+whWSPdUHMOeop6OqaL12w5USXU D73tEyfDdOMftm3BlsUTD4z7EKEoZxt+a5S3J4f3pI1wSy2E3UM+n9Jo+FtiUHGzN/5O vbFZTJrcKFNDvCX4caWmHvHfCj6xRo3YqArvdYuoe1V0gnodywHUco01iAZHB+WbH3Fu c+/Q== X-Gm-Message-State: APjAAAWYbl7qqnOFINaKTHjJW1jNHSukUxzfkY1eObbFD+xfrKDvKWZ1 8vuHBpo8kSqvV+I98NUJYWmN6g== X-Google-Smtp-Source: APXvYqx0VwSxLWwwi/QI731JcX4o5KzSv7VQ+x3IN6vOrKtUkeLlj00xcW/0Lmpm5Ak6YPZSCckbkg== X-Received: by 2002:ac8:24ce:: with SMTP id t14mr3365497qtt.246.1565709923102; Tue, 13 Aug 2019 08:25:23 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([191.125.227.77]) by smtp.gmail.com with ESMTPSA id c18sm14753844qtj.25.2019.08.13.08.25.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 13 Aug 2019 08:25:22 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id E5144123B1B; Tue, 13 Aug 2019 11:25:17 -0400 (-04) Date: Tue, 13 Aug 2019 11:25:17 -0400 From: Alvaro Herrera To: Amit Langote Cc: Kyotaro Horiguchi , Simon Riggs , yuzuko , shawn wang , Shawn Wang , PostgreSQL Hackers Subject: Re: Problem with default partition pruning Message-ID: <20190813152517.GA9767@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Aug-13, Amit Langote wrote: > Thanks a lot for revising. Looks neat, except: > > + * This is a measure of last resort only to be used because the default > + * partition cannot be pruned using the steps; regular pruning, which is > + * cheaper, is sufficient when no default partition exists. > > This text appears to imply that the default can *never* be pruned with > steps. Maybe, the first sentence should read something like: "...the > default cannot be pruned using the steps generated from clauses that > contradict the parent's partition constraint". Thanks! I have pushed it with this change. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services