Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSQml-0000ss-CY for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Oct 2020 20:20:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kSQmk-00011c-13 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Oct 2020 20:20:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSQmj-0000zj-Ky for pgsql-hackers@lists.postgresql.org; Tue, 13 Oct 2020 20:20:37 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kSQmg-0006fF-Gq for pgsql-hackers@postgresql.org; Tue, 13 Oct 2020 20:20:36 +0000 Received: by mail-il1-x131.google.com with SMTP id w17so1995640ilg.8 for ; Tue, 13 Oct 2020 13:20:34 -0700 (PDT) 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=03mK++KWf0srn8mJ+j8+FcmY647zacx0KHJHFqwP3m8=; b=ydl0g7oHT4WrHhPuCsAaToZ9JddAyAf7uOICQMWtUsYuEYUuDQ1pT2WqTZusvucSdL Gxh2Yswr8Ts1uwUw9Jtp1/c7FKZFrRa6ZmXIvAA9o19nbIF/aBIm7UjCt8gyxXDlo6c6 a3xYkCrM2KBS4lNHBNcySIIo0XqH+1cQwIzRFeFwjYJvytMoI2A9YxDXXfrPMk3KJw29 nD4MVPHSZcdyBWrHw+Kw0hv1WsxJB4MS/bIhoWbfrOkdwLE6ddZnMcWqC8+TloiCsQIn 9AHKm+O/Vbwhw+8dhWfFeCe6xslxoxHvWL6nXHUSaAm7POyu+UF/YoDpjTTtkLKVZT6c on1A== 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=03mK++KWf0srn8mJ+j8+FcmY647zacx0KHJHFqwP3m8=; b=dwG9gVH3Pe2JuK5k78l62i3g5JnrLC3W9StNT8M7nBSei2y0q01sPESKJGsbmdMZW6 Q1sjCPrrMynjjboAJP4oa18IPFTEbVogwUUZvSiU44Q1MijWe484cvGJl03L2O4KNCb8 r1t/w/MixBpAFjfryxvBCkJq4D3hmEc2yoj8UILNB9IlqDK0VYtvOpc6sb4CYUuviuAB HvA8g+smPwrz7WhxS12cHoytLiFlamdGoSniQih8ivZhNYAP0tEIg3hZNbO8jpiniEVJ lq6OGfXGfRE8YTB1/YK4rDBLfWpSR/+cEnSTUlqZc88ATq0OLDUhOCJEELjGXARMeNRs qNRg== X-Gm-Message-State: AOAM5309R/pKanT1W6olYkUjHdlJrN2SycgzOQOeT2Cc2iB9sURDr4S7 4XaqF6zbsO1AO3pjNSyddF+6zQ== X-Google-Smtp-Source: ABdhPJzfTO800SYrOWpWoopB5T0ede/E9tWDAcfPrs86jjZD3tRHpVfP01udt42+ro4q066BMSZGWA== X-Received: by 2002:a92:d211:: with SMTP id y17mr1238704ily.215.1602620433437; Tue, 13 Oct 2020 13:20:33 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id o13sm779197ilk.40.2020.10.13.13.20.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Oct 2020 13:20:32 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 87CF2801407; Tue, 13 Oct 2020 15:20:31 -0500 (CDT) Date: Tue, 13 Oct 2020 15:20:31 -0500 From: Justin Pryzby To: Soumyadeep Chakraborty Cc: Konstantin Knizhnik , David Rowley , pgsql-hackers Subject: Re: avoid bitmapOR-ing indexes with scan condition inconsistent with partition constraint Message-ID: <20201013202031.GP9241@telsasoft.com> References: <20200704004503.GA23805@telsasoft.com> <20200715001749.GU23581@telsasoft.com> <20200803181223.GC28072@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Wed, Sep 30, 2020 at 04:52:02PM -0700, Soumyadeep Chakraborty wrote: > Hi Justin, > > Attached is a minimal patch that is rebased and removes the > dependency on Konstantin's earlier patch[1], making it enough to remove > the extraneous index scans as Justin brought up. Is this the direction we > want to head in? Yes, thanks for doing that. I hadn't dug into it yet to figure out what to put where to separate the patches. It seems like my patch handles a different goal than Konstantin's, but they both depend on having the constraints populated. -- Justin