Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYIha-00030q-L6 for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2017 20:37:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cYIha-0005Bb-6T for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2017 20:37:26 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cYIhX-00059g-2v for pgsql-hackers@postgresql.org; Mon, 30 Jan 2017 20:37:23 +0000 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cYIhS-0001LJ-GY for pgsql-hackers@postgresql.org; Mon, 30 Jan 2017 20:37:22 +0000 Received: by mail-qk0-x22e.google.com with SMTP id s140so142909312qke.0 for ; Mon, 30 Jan 2017 12:37:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=ACXQL4jg4p3ouN49LzsbXSHSl5OCgz0GCwavYGYil1M=; b=Yt1Q03catzQTzO+8OGmne0xg56hcXiNB7+7ybJ7eeuP6K1N9760w379EYf5t0rs1gx uAffd4UZ8C/L77N2Y2o0MG2ld0mvG5Iq1jPgahzoRITVCGlvuoQ1Sg5IC3WSAEKoT43g SeUEfY5f6gLAGOp0OHTKMp44pXz+MRBx0uZwAAmsi41u3CHdRh4pHxl4viW6asqEIBwD ADmm3jzHEtJdZTOLBhdwLHITCyN6addLr8AAmF87ouchSbJuPpWRpK+MpFR3T+lkJ1jO 0xQocnFdZQhrN1JsMP5QGZaJr3HCwQnmJLBD2Cn2R8eiHXXXHvCQyFsZttAlkg3RJBcM 9w/w== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ACXQL4jg4p3ouN49LzsbXSHSl5OCgz0GCwavYGYil1M=; b=StMVv0bVz6hXuTqh+vPbWKGasyJ1RA3ukhUxmbF2tsSmK5I3mHOSLK3X5rtnnZmuCj GZdKTuj8rw5vatXmwLTlrtMWIT8nveXFj1BFVnLZuyY8yM0dNxFR809JqpMghzTd0ik7 6J7ZPOs5f7nvy6NmQ9zYZPHhrbSETOXEFog0zvr2PyN+YXhMO/DmqoBbbUHJ5/3hCCz7 qtjFkIi5pVsLDLxu14ZdxljLIQo9KOUAqG7PLtSsfir8UAiTAlgJZtIcUHAEg1OcDOaC ZV47F53wrmySkdis2n6Qf9Q5iFjHrOhVRLkMy8q9CzCH1r8saXlLLSQ6uoN5x2CJN2/7 Ku+A== X-Gm-Message-State: AIkVDXIxoSnektBJDfkdsTsp7GEU+pGhDRXJy/ebYIRzvx6xqdFMKLACht2pQilfHlrHJFXN X-Received: by 10.55.221.5 with SMTP id n5mr22402966qki.58.1485808636699; Mon, 30 Jan 2017 12:37:16 -0800 (PST) Received: from alvin.alvh.no-ip.org ([179.57.112.237]) by smtp.gmail.com with ESMTPSA id 21sm13284934qkh.13.2017.01.30.12.37.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jan 2017 12:37:16 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 49D051310; Mon, 30 Jan 2017 17:37:14 -0300 (CLST) Date: Mon, 30 Jan 2017 17:37:14 -0300 From: Alvaro Herrera To: Tomas Vondra Cc: Dilip Kumar , Amit Langote , Dean Rasheed , Heikki Linnakangas , Michael Paquier , Robert Haas , Tatsuo Ishii , David Steele , Tom Lane , Petr Jelinek , Jeff Janes , "pgsql-hackers@postgresql.org" Subject: Re: multivariate statistics (v19) Message-ID: <20170130203714.latitwfmrzukgugh@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <92306c1a-6a81-a5e9-6283-e5438f455f16@2ndquadrant.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Tomas Vondra wrote: > The 'built' flags may be easily replaced with a check if the bytea-like > columns are NULL, and the 'enabled' columns may be replaced by the array of > char, just like you proposed. > > That'd give us a single catalog looking like this: > > pg_mv_statistics > starelid > staname > stanamespace > staowner -- all the above as currently > staenabled array of "char" {d,f,s} > stakeys > stadeps (dependencies) > standist (ndistinct coefficients) > stamcv (MCV list) > stahist (histogram) > > Which is probably a better / simpler structure than the current one. Looks good to me. I don't think we need to keep the names very short -- I would propose "standistinct", "stahistogram", "stadependencies". Thanks, -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers