Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rIrJt-00AheD-C4 for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Dec 2023 14:25:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rIrJp-00Gawd-IM for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Dec 2023 14:25:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rIrJp-00GawV-7r for pgsql-hackers@lists.postgresql.org; Thu, 28 Dec 2023 14:25:05 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rIrJl-00EK5T-P6 for pgsql-hackers@postgresql.org; Thu, 28 Dec 2023 14:25:03 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-55539cac143so2312665a12.0 for ; Thu, 28 Dec 2023 06:25:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1703773499; x=1704378299; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4oFLtiyjqJy4rkAIPpxgRU7ipJ8hwg5ZytF/fgksUuo=; b=abEjVlpkEqMjIlMCxoHuQvMyfA4+LkEWeLghcgeNdzz/4c/6yCvbqzvQhzVI8bs9Qy +1WrNUCltRCNks5Lri/MCxzS2+UD2LRzMQQOSzMu5FMj17w7O+FrzFTXs8haa7Y6oWER oOyEgvyiGv+S5uPqlXsOV5pSndoybz3pYtaJNG+dtj7EPd2BaPD3rlRtJfMNRY/9wIYY qi923K9p+vLcIzWqPnBrn3K0GmBstY4TX5toC6OcaAU9pbFnOH4H+tpTArHPDhBattri MuSnInqneCcgscTt9Lg7tC2Y7Wr8UiV5aOj7TVffSD4BxEMyMuPkKWzg+ifZfcGIKMuv 92Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703773499; x=1704378299; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4oFLtiyjqJy4rkAIPpxgRU7ipJ8hwg5ZytF/fgksUuo=; b=Gpq7QZav30sL0iYbik85YWA1PK625PSnUucez1tmfDRLSq6XLnErbGv3Es9qoAiAVH OOYhNqXxqbfoWXYrl8yXG6OH/Ynt00VRpHwpWlAP49w+eHaoFLgtl+v/YJVQqc5xc3Xx /O6Fmj+Cf88PbFsY+xpZApFoufJbVSWJae20PAUB9zJv6ofDtGYEyqjdBZwVF/MH4bzo fS1dX+Z6c3fSfFXhDuzqNzkFBVVxO/lSRhLuUtKoT8gOrKB/eNGPUc6IGNPXu7+MFPEL +6x0HJr+t+kRmAuAUo1AcStieNyRIN9fwHQrMcG08ouC0vA9JBa/PhE6i5aUAZaty6Yz HRtw== X-Gm-Message-State: AOJu0Yy+/iy6IQHkn/pV2XgrFOeRpzH+SUCoqnPzKprtVfFrDYR6nE3+ DqNzs/Qnd605+UMvcnUEoz3c/mQtXpuL X-Google-Smtp-Source: AGHT+IEuOHK0mAsVVf2mmxYjtMDsDTWuF+PLSGgYeo/yLsOjwT4vgzdGnbH0PIVflGfYu4V6/P/O/Q== X-Received: by 2002:a50:d598:0:b0:553:6de7:3157 with SMTP id v24-20020a50d598000000b005536de73157mr5915931edi.76.1703773499457; Thu, 28 Dec 2023 06:24:59 -0800 (PST) Received: from [10.137.0.17] (ip-86-49-229-30.bb.vodafone.cz. [86.49.229.30]) by smtp.gmail.com with ESMTPSA id h16-20020aa7c950000000b0055534d5e75csm2906099edt.6.2023.12.28.06.24.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Dec 2023 06:24:59 -0800 (PST) Message-ID: Date: Thu, 28 Dec 2023 15:24:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: Multidimensional Histograms Content-Language: en-US From: Tomas Vondra To: Alexander Cheshev , pgsql-hackers@postgresql.org References: <6e92450c-8136-11d4-8f6e-501c693af5c8@enterprisedb.com> In-Reply-To: <6e92450c-8136-11d4-8f6e-501c693af5c8@enterprisedb.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/27/23 22:19, Tomas Vondra wrote: > Hello Alexander, > > We actually had histograms in the early patches adding multivariate > statistics [1]. We however ended up removing histograms and only kept > the simpler types, for a couple reasons. > > It might be worth going through the discussion - I'm sure one of the > reasons was we needed to limit the scope of the patch, and histograms > were much more complex and possibly less useful compared to the other > statistics types. > > ... FWIW I did not intend to reject the idea of adding multi-dimensional histograms, but rather to provide some insight into the history of the past attempt, and also point some weaknesses of the algorithm described in the 1988 paper. If you choose to work on this, I can do a review etc. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company