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 1jXpri-0005R2-Kp for pgsql-hackers@arkaria.postgresql.org; Sun, 10 May 2020 17:35:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jXprA-0000sV-QA for pgsql-hackers@arkaria.postgresql.org; Sun, 10 May 2020 17:35:16 +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 <9erthalion6@gmail.com>) id 1jXprA-0000s5-H5 for pgsql-hackers@lists.postgresql.org; Sun, 10 May 2020 17:35:16 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <9erthalion6@gmail.com>) id 1jXpr8-00016M-1D for pgsql-hackers@postgresql.org; Sun, 10 May 2020 17:35:15 +0000 Received: by mail-wr1-x443.google.com with SMTP id g13so8025386wrb.8 for ; Sun, 10 May 2020 10:35:13 -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=NfDq/8u7IsGrkYcqmkh27aSGNeLwxfviUpLl8I8PZ8c=; b=XdCduNWSmQOf3419MNAxhBV/sEntoPJAjN2JvZy9zFWt2CRidf/pZo3Zle1IMCj6pS jNYxvEYl3JGFgcS8gYs5vFK2G4FsuqH6Y3IN++YjmdVX5UDcA2iMJxKNNtlfA2gYrGYw FLeWQgtLtq87FiNotZQoNfvfi1frJWeWmEIinSMMXQLO0S1LfLC5CnaxFJ2LpKYywEBD 2aI3D8x9XO4zQnm0nvmANKLSap84KNJb9occsXf5HEAfwzqWqxDa6TTibnEvipq+DHn3 QFzB07chAY0Ct8qmot790uDgBwv8DP9faXKBNhFaW04LW73VvQszOYkhyiypIzY5jiQO 7+Qg== 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=NfDq/8u7IsGrkYcqmkh27aSGNeLwxfviUpLl8I8PZ8c=; b=F7DO8EY2Ly84JSxLgVICh/ttD1QgLVYZWuWXXFkHzFN3mMIVXbY4VZaIIDwqfUWRRy Otgra3ZhAw4VYKSGG90d38BfGWbS8ofnYRxRWJ5EM6dnvSo9h25bnxhcx7nVczu/J0AV XoSgqanzu6GcBfBEUhQDV2+1S4C703FSS3pmp6U+08473zB+rSJEDY+Rzyvr51ur1OsL P0nAPw4tSpGCdiVsRmT6G4zJ2hiGgJnP1OtIJNdrzVk+Xfjj+93Xu3n9RtmZLcIGbjo9 2pXlRbMqZnzl+RxOjQ+QzgeK1tXm/97V/UIiUqZau83IzhQ+FF/QTNU/L5VEAXA3K9El RRSw== X-Gm-Message-State: AGi0Pubhu+Ib8tMGQXto6rFikqFdfm/VUR9Cb3IYBZJXxH/dUAMbM43i QfV9vjgJbr8SiSlpdsaVewo= X-Google-Smtp-Source: APiQypKGyN+1YIfgfStOU2oGCUKvmcD+tXlhgxODFl/WQ8eTBX1eTOdT3WBxgWgGVlEbzi+agsybWA== X-Received: by 2002:adf:a297:: with SMTP id s23mr14631170wra.54.1589132110914; Sun, 10 May 2020 10:35:10 -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 81sm5606769wme.16.2020.05.10.10.35.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 May 2020 10:35:09 -0700 (PDT) Date: Sun, 10 May 2020 19:36:58 +0200 From: Dmitry Dolgov <9erthalion6@gmail.com> To: David Rowley Cc: Floris Van Nee , Dilip Kumar , 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: <20200510173658.kfmyzsrmcr2n3cre@localhost> References: <20200325085100.5fixaiteuoln4f45@localhost> <20200405161029.fpqqll7xbgfqy5na@localhost> <80ef5f0744f542b18e508fb589a6425a@opammb0562.comp.optiver.com> <20200406163941.rh3okji2rhbnptyt@localhost> <8abe43ac82714c2f9044fb8bac0ebfd0@opammb0562.comp.optiver.com> <20200407194220.edf4nbi7l4cpxk4v@localhost> 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 Sorry for late reply. > On Tue, Apr 14, 2020 at 09:19:22PM +1200, David Rowley wrote: > > I've not yet looked at the latest patch, but I did put some thoughts > into an email on the other thread that's been discussing UniqueKeys > [1]. > > I'm keen to hear thoughts on the plan I mentioned over there. Likely > it would be best to discuss the specifics of what additional features > we need to add to UniqueKeys for skip scans over here, but discuss any > chances which affect both patches over there. We certainly can't have > two separate implementations of UniqueKeys, so I believe the skip > scans UniqueKeys patch should most likely be based on the one in [1] > or some descendant of it. > > [1] https://www.postgresql.org/message-id/CAApHDvpx1qED1uLqubcKJ=oHatCMd7pTUKkdq0B72_08nbR3Hw@mail.gmail.com Yes, I've come to the same conclusion, although I have my concerns about having such a dependency between patches. Will look at the suggested patches soon.