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 1guERC-0004Jy-Ek for pgsql-performance@arkaria.postgresql.org; Thu, 14 Feb 2019 10:40:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1guERA-0004he-PT for pgsql-performance@arkaria.postgresql.org; Thu, 14 Feb 2019 10:40:12 +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 1guERA-0004hS-Hu for pgsql-performance@lists.postgresql.org; Thu, 14 Feb 2019 10:40:12 +0000 Received: from mail-it1-x130.google.com ([2607:f8b0:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guER3-0007hp-F7 for pgsql-performance@lists.postgresql.org; Thu, 14 Feb 2019 10:40:11 +0000 Received: by mail-it1-x130.google.com with SMTP id z9so11989734itc.4 for ; Thu, 14 Feb 2019 02:40:04 -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=+4FH4b53lLiIm1OSzDHGTZMiB2GWxnfxKoWKYMbVezc=; b=DndvQUb5o1WprklwJsPZwM31isfH/Ho1BGQzfY9w/yZJymQHNwyg/J+8M5A2AyBzv8 HWQYEmnh3OBTQosIImbX/LT3rZbWM7309lpKAe+ELRPqjwk4DapnBj8ZbJrGpL/UIa1R P6XJ7gVTaKBDsNMC/xedM3OFHDAtYmGpESiE/hkkViLdmC6PMWTIyw6MfGpRsta9JGvV s1FKakaN8TxlHOimG9jn4tzVddXw1v3waczwVB0MekMC8Q2Bve4PY6PuJS6mvGAqK/LL hi8p+yDH2yMeX2+puejY8+p2VOV4oYXsTRY5jORZz2L6N4jkKq7lT+vIQBe0yObz2SqW Sc9A== 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=+4FH4b53lLiIm1OSzDHGTZMiB2GWxnfxKoWKYMbVezc=; b=MileJ0UOxGyxhKzvhtw2mEDPBOuWAH1QkP0fPU37JI52+qJIpzSWkYh+EhqPMfOpv+ qXargGaTiUg6+dAOWFuAnlrNdwpanoHmBoG2TzeKYCzLI/GoZmgWoRl3NVL3Xi/6Q/W8 pRz223EKAsnDf4tyjlJRVzk21l1LjnoTh4uGX8nczit1AH2v4cH7j68nE68NfgFb5dMa weI7mc7xPoZhun3NtufIJOxgYoZhGG6lJmo6N7e5BuWMHtqJEn8wTednQY6djeBNCarz aI4nPn5dBN9RrWk6y6623ZQ+Pkovtu2N1zDNjb8Negec7VSHNDh+UnnAkdO/Gyvh9OJD YUyA== X-Gm-Message-State: AHQUAuazi2ojPpxsu0pUGUy3EVl6wwNKQJ90Fh56cL8YDGLif1xXF8r7 wYG3+F6NUUXVhXQ1ebZrij47h2VdLU8= X-Google-Smtp-Source: AHgI3IYZj02XGEZHsWLg+ROivoOQAPNvJopcICP2ckMwCC4c4NbiJRFJ+0Cx9Fuujtvjualj48xHyg== X-Received: by 2002:a6b:7517:: with SMTP id l23mr1807806ioh.74.1550140803100; Thu, 14 Feb 2019 02:40:03 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id 10sm857392itm.41.2019.02.14.02.40.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 02:40:02 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 9C39D800BEE; Thu, 14 Feb 2019 04:40:01 -0600 (CST) Date: Thu, 14 Feb 2019 04:40:01 -0600 From: Justin Pryzby To: suganthi Sekar Cc: "pgsql-performance@lists.postgresql.org" Subject: Re: constraint exclusion with ineq condition (Re: server hardware tuning.) Message-ID: <20190214104001.GB30291@telsasoft.com> References: <20190214100533.GA30291@telsasoft.com> 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 Thu, Feb 14, 2019 at 10:38:36AM +0000, suganthi Sekar wrote: > u mean the below parameter need to set on . its already on only. > alter system set constraint_exclusion to 'on'; No, I said: > You can work around it by specifying the same condition on b.call_created_date: > > AND b.call_created_date >='2017-11-01' AND b.call_created_date<'2017-11-30'