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 1kXqmw-00045H-LX for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Oct 2020 19:07:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kXqmv-0006W8-Jm for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Oct 2020 19:07:13 +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 1kXqmv-0006W1-D2 for pgsql-hackers@lists.postgresql.org; Wed, 28 Oct 2020 19:07:13 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kXqmr-0004YD-1n for pgsql-hackers@lists.postgresql.org; Wed, 28 Oct 2020 19:07:12 +0000 Received: by mail-ed1-x532.google.com with SMTP id x1so625038eds.1 for ; Wed, 28 Oct 2020 12:07:08 -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:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=mTT7de/UqJs8xrmewCxUelBL3JDKhihs9FWkhdp8o/g=; b=p3VZVWF83DzruWhZISpobFTCSO06WMFT/ZBEHmvC43Wb0PqMZ8eg0zPhhwro6If57o rYc/41zwok0J9uBN4n3f34rQrFO4xScZ0wzIm9CUdKeIo1MGb+cgxqviuKRbuve6SQgO 7eDPNFogigIdt/8m+mdQdLh/2LUFMG4diLbr6m8edmpWesJ6IsWgcqJ0++6sIxyw4RL3 l6EYw+UijpRigdnkwNYmQX67H2mdn89EUbZW7+eVdFIvU2G1NNTwo+8rDFEuIfMTrVxS oHU9GLAmgnE2GMxtV+OXb83XojsS7y6QiNfVV/qJ3WrN1ogNuanIW924JIh2qkj6AnlW 7Zqw== 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:content-transfer-encoding :in-reply-to; bh=mTT7de/UqJs8xrmewCxUelBL3JDKhihs9FWkhdp8o/g=; b=a5sN16WjkBGIil74kGipwMvV2APBtF98eMgg3mmaMDpOViX2vSuCqfyS4oEY6FqgSR SWy2cqLNlvBHszngU3L7Y/0MfaVbhhFNYdXTunrl/dVwCn7gN5NJZjEzrJbCqzRa7h9a JCN5R3jt3F3UBVzqXA+fO8VgIC5pN8zl7L2h82/WzRC50dFO88Qs8WbrQgZqsMN4HtLS uGYcJPuVHZSEtJXc5qX8P6Z5YUZZr98Pds/MEGtFN/hajTfKxMbfHz771i7cOWJA2ybx WFtrPgVYfqji3E3XKXJzTDLLNdr1vvhf+8joKeHRsOExFuFkNmzGuGF9hPbKizZpboD/ hsqg== X-Gm-Message-State: AOAM533hnkzAO2/B6lDyJJwvWQk5ze2RpCOwsIwPd11X/41uGwj1KMEc RmlSb/xd58yJHfDQ3nlGc11PyQ== X-Google-Smtp-Source: ABdhPJw4THrunvxFKz0avC2t6dvPLl7K22nj1blUS+WAzbylZYUoBQuvmhDArRPcSVid0bPO7MuhkA== X-Received: by 2002:a05:6402:32f:: with SMTP id q15mr390328edw.230.1603912028015; Wed, 28 Oct 2020 12:07:08 -0700 (PDT) Received: from localhost (ip-86-49-245-76.net.upcbroadband.cz. [86.49.245.76]) by smtp.gmail.com with ESMTPSA id z23sm236611ejj.52.2020.10.28.12.07.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 12:07:07 -0700 (PDT) Date: Wed, 28 Oct 2020 20:07:04 +0100 From: Tomas Vondra To: Tatsuro Yamada Cc: Michael Paquier , Pavel Stehule , Alvaro Herrera , Julien Rouhaud , PostgreSQL Hackers Subject: Re: list of extended statistics on psql Message-ID: <20201028190704.uqyh6favcmkxxewk@development> References: <20200831153053.a343pjgumahiejhw@development> <20200831161809.GA31337@alvherre.pgsql> <20200831163200.jp6eqbaaupb6hxac@development> <20200917055531.GV2873@paquier.xyz> <20200930061947.GD1996@paquier.xyz> <2a3173fb-8571-3779-2916-d16a170750f0@nttcom.co.jp_1> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Oct 28, 2020 at 04:20:25PM +0900, Tatsuro Yamada wrote: >Hi, > >>Results of \dX and \dX+: >>======================== >>postgres=# \dX >>                             List of extended statistics >>     Schema    |   Name    |   Definition    | N_distinct | Dependencies |   Mcv >>-------------+-----------+-----------------+------------+--------------+--------- >>   public      | hoge1_ext | a, b FROM hoge1 | defined    | defined      | defined >>   hoge1schema | hoge1_ext | a, b FROM hoge1 | built      | built        | built >>(2 rows) > > >I used "Order by 1, 2" on the query but I realized the ordering of >result was wrong so I fixed on the attached patch. >Please fined the patch file. :-D > Thanks. I'll take a look at the beginning of the 2020-11 commitfest, and I hope to get this committed. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services