Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPEfH-0002ah-4e for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Jun 2018 22:06:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fPEfF-0003Rp-Kr for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Jun 2018 22:06:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPEfF-0003Rd-AG for pgsql-hackers@lists.postgresql.org; Sat, 02 Jun 2018 22:06:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPEf8-0005tT-EP for pgsql-hackers@lists.postgresql.org; Sat, 02 Jun 2018 22:06:19 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w52M6AYu001115; Sat, 2 Jun 2018 18:06:11 -0400 From: Tom Lane To: Jeff Janes cc: Ashutosh Bapat , Dmitry Dolgov <9erthalion6@gmail.com>, Pavel Stehule , PostgreSQL Hackers Subject: Re: why partition pruning doesn't work? In-reply-to: References: <7142.1527868419@sss.pgh.pa.us> Comments: In-reply-to Jeff Janes message dated "Sat, 02 Jun 2018 17:16:51 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1110.1527977170.1@sss.pgh.pa.us> Date: Sat, 02 Jun 2018 18:06:10 -0400 Message-ID: <1111.1527977170@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jeff Janes writes: > On Fri, Jun 1, 2018 at 11:53 AM, Tom Lane wrote: >> It's worth questioning whether this is a bug fix or an improvement. >> If the latter, it probably ought to wait for v12. > If explaining the change requires reference to tokens from the source code, > rather than something an end user could understand, I'd argue it is a bug > fix rather than an improvement. Well, the difference between volatile, stable and immutable functions is well-documented, so I don't think that's a great argument. If there's some aspect of this behavior that's not predictable from understanding which class the partition key expression falls into, then I could agree that's a bug. regards, tom lane