Re: list of extended statistics on psql

From: Tatsuro Yamada <tatsuro(dot)yamada(dot)tf(at)nttcom(dot)co(dot)jp>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Julien Rouhaud <rjuju123(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: list of extended statistics on psql
Date: 2020-10-28 07:20:25
Message-ID: f1cd98b6-f7d4-e276-ea64-41a0a3c58b99@nttcom.co.jp_1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Regards,
Tatsuro Yamada

Attachment Content-Type Size
add_list_extended_stats_for_psql_by_dX_and_dXplus_r5.patch text/plain 11.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2020-10-28 07:34:58 Re: MultiXact\SLRU buffers configuration
Previous Message tsunakawa.takay@fujitsu.com 2020-10-28 07:20:16 RE: Global snapshots