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 1kBRi0-0000kU-1f for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Aug 2020 23:53:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kBRhy-00089O-UL for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Aug 2020 23:53:30 +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 ) id 1kBRhy-00089H-IW for pgsql-hackers@lists.postgresql.org; Thu, 27 Aug 2020 23:53:30 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kBRhv-00041H-RF for pgsql-hackers@lists.postgresql.org; Thu, 27 Aug 2020 23:53:30 +0000 Received: by mail-qt1-x844.google.com with SMTP id k18so6114410qtm.10 for ; Thu, 27 Aug 2020 16:53:27 -0700 (PDT) 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=pb8chiLn5xqPX50BkelIbKzurqMWhp+EoB5rR1JAa4w=; b=1eSMRK90MpPiPv2D8SXHvg6e9bCXKAcBOtgFnsXKOwcOYMvxX3yogTehhjB6xApRqQ TtOFi4KaFCY2EtmyW+SU4kl3MoS7uwdtCg9dOLBHWTLnfvcBGRYsV9tAVucV9v9PRCnZ p0B77Fm/6iwtFeqjOIXxfJfqRQYWwDAVBTnPy9+IBYERYCOvN+SB7wMiuatPGDB4sV89 FgZ7FHVsOADvrAQtSAIS69sEL+xhABbRBOSh0es/IZtyfRmvMAvj07/lldNRbEndaTZK hDy6cf6Qx6wYFoPPGogRYJuEVfZY0TU0laUR58+9yIqzEVmJkngjmxVogC1VhUwYEwpc O0rQ== 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=pb8chiLn5xqPX50BkelIbKzurqMWhp+EoB5rR1JAa4w=; b=Rhg8qlnxCIrLHofR8I6p1Zmu2wnWVLWrGLw0P8ULxAaVKqqU0+3yvRG7384Ga3HwZF NbB22jn5ZEMoUEX/Gpzyq30rBtnN3/RDphgbkMC1pGgwU+L3sv1Bs/EEQWQQVOddj/WO H0DWIsSFS4WfNFEX3gGfMOQ2t6K3Cn97qFRoxIuu7+MUP9vJboNdRCSNO+Zl/s5OfeVz bfNb4kt8p/E4hpG1FX1IDk8YksTjcXc7bJgSCffcOuxbpN9QVOcbJm8hU0WwDHxbWr66 hf6DW6hGyHUR7d8rYBB8Var7W9iOmmubQVXNzb55gk2N+Ix7V1lxD7gS2OaM7Ts6YJdQ igog== X-Gm-Message-State: AOAM531cVHZbg3sL05J7BmyKcA7sE1BEaSKSEG1pWkbDGOOxMZ7y/K9n AKvHCaKfmgEGayydbra5esXx3Q== X-Google-Smtp-Source: ABdhPJz+SasF6MQG46OcNIliRdgNk1GWx8BRqp9xDWvmE8uH29C+Ns9eP6xMDMImm3h50VXCXl/Gvw== X-Received: by 2002:ac8:4e2f:: with SMTP id d15mr21379659qtw.125.1598572406231; Thu, 27 Aug 2020 16:53:26 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id g4sm2995841qka.25.2020.08.27.16.53.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 16:53:25 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C458F2A0370; Thu, 27 Aug 2020 19:53:23 -0400 (-04) Date: Thu, 27 Aug 2020 19:53:23 -0400 From: Alvaro Herrera To: Tatsuro Yamada Cc: Julien Rouhaud , Pavel Stehule , PostgreSQL Hackers , Tomas Vondra Subject: Re: list of extended statistics on psql Message-ID: <20200827235323.GA13919@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk +1 for the general idea, and +1 for \dX being the syntax to use IMO the per-type columns should show both the type being enabled as well as it being built. (How many more stat types do we expect -- Tomas? I wonder if having one column per type is going to scale in the long run.) Also, the stat obj name column should be first, followed by a single column listing both table and columns that it applies to. Keep in mind that in the future we might want to add stats that cross multiple tables -- that's why the CREATE syntax is the way it is. So we should give room for that in psql's display too. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services