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 1jLUlQ-0008V9-Qk for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2020 16:38:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLUlP-0003RV-Nt for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2020 16:38:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <9erthalion6@gmail.com>) id 1jLUlP-0003PI-El for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2020 16:38:19 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <9erthalion6@gmail.com>) id 1jLUlN-00033M-DI for pgsql-hackers@postgresql.org; Mon, 06 Apr 2020 16:38:19 +0000 Received: by mail-wm1-x343.google.com with SMTP id t203so55926wmt.2 for ; Mon, 06 Apr 2020 09:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1ES9q9NBfwgZ5YV+GfNVGUO4SyBo8uKkRPmE4hBm9WE=; b=QQzczZLh0DRVbWYxj+D3Uy0mpyFGyXvDogta0plqf1bmuZ4ffa56zYAFyhRuSHlrwQ rh/mUb0gZSF8BtSRT3J5TVxhItbkZdQsxkmVR4QU3rqDSU41K4KJllAOeRz1xDHJ64Xf SpO/BrUYmTZ5w7UVomfMzOwRXapGTR+4luGNlmKQbYlnt8r3MW4BW3IKgmiGFsv3Py5c zPSzQSPkBA6nEkZhlT/Hkke6pSXbEEzTve2b+FHDR9pGE26WIxug25VsOqiJG2IDlZQn RAR04GUkfJvg24E0yo+ZN4KnBHCcCw8AM7AfikbK/TS11Li6vHnIwKfzIpT2vYAZU2Md xWsw== 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; bh=1ES9q9NBfwgZ5YV+GfNVGUO4SyBo8uKkRPmE4hBm9WE=; b=BT9eqDY7XAPXenS8pT0TZoBQ9dDLD/n0vdc/eE15UofydNHXLYkidfzkj3hwJLOvWx TmL+RSKIS+/oNeXbtzn3USzjdSyP46XTjGWMblgnlzurug1UNdqXiOMio/xLtVd6Y1AC 8IaypuSnQtAsmW2lUV9uysrBJ45/AOsAGTFFZNKCRhrYzmBmttBb69o2/RgA2MI3aEK2 ACeWqr2AFlpQ9LMeZbWo8n1Z1giuhue7au2vzCriO3qLVxaY92tvHBUdnXRKoHVdN15X gujxGWTSNGCY0ZbUIP38Jb6I4iRSfMizJZUJUANUGYExVAuGPdGbx8mJ1PTcs+cUtwYV o0kw== X-Gm-Message-State: AGi0PubRunPYlJBulUMSn8qYnPh+UiuzTcs/VlMq8NxUQhe0ItYkRksW DayrID7YhLGNzPEAMEvlMHY= X-Google-Smtp-Source: APiQypK3uP9fogzGk1jyIeVIS51Hl/ks1b8K59QVIRQCMCwy7n+JJkJLNTbFD1JVHNvFQhhQSgzN4w== X-Received: by 2002:a7b:c631:: with SMTP id p17mr15611wmk.11.1586191096155; Mon, 06 Apr 2020 09:38:16 -0700 (PDT) Received: from localhost (dslb-094-222-004-201.094.222.pools.vodafone-ip.de. [94.222.4.201]) by smtp.gmail.com with ESMTPSA id n6sm146065wmc.28.2020.04.06.09.38.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Apr 2020 09:38:15 -0700 (PDT) Date: Mon, 6 Apr 2020 18:39:41 +0200 From: Dmitry Dolgov <9erthalion6@gmail.com> To: Dilip Kumar Cc: Floris Van Nee , David Rowley , Kyotaro Horiguchi , Tomas Vondra , Peter Geoghegan , Jesper Pedersen , Alvaro Herrera , Thomas Munro , James Coleman , Rafia Sabih , Jeff Janes , "bhushan.uparkar@gmail.com" , PostgreSQL-development , Alexander Korotkov Subject: Re: Index Skip Scan Message-ID: <20200406163941.rh3okji2rhbnptyt@localhost> References: <20200310123942.nse4uyd6yqtb7uyi@localhost> <20200324163919.7nwqe72xzfatix4y@localhost> <20200325085100.5fixaiteuoln4f45@localhost> <20200405161029.fpqqll7xbgfqy5na@localhost> <80ef5f0744f542b18e508fb589a6425a@opammb0562.comp.optiver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Mon, Apr 6, 2020 at 1:14 PM Floris Van Nee wrote: > > > > There's a number of ways we can force a 'filter' rather than an > > 'index condition'. Hm, I wasn't aware about this one, thanks for bringing this up. Btw, Floris, I would appreciate if in the future you can make it more visible that changes you suggest contain some fixes. E.g. it wasn't clear for me from your previous email that that's the case, and it doesn't make sense to pull into different direction when we're trying to achieve the same goal :) > > In the patch I posted a week ago these cases are all handled > > correctly, as it introduces this extra logic in the Executor. > > Okay, So I think we can merge those fixes in Dmitry's patch set. I'll definitely take a look at suggested changes in filtering part.