Re: list of extended statistics on psql

From: Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>
To: Tatsuro Yamada <tatsuro(dot)yamada(dot)tf(at)nttcom(dot)co(dot)jp>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Pavel Stehule <pavel(dot)stehule(at)gmail(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: 2021-01-07 00:56:18
Message-ID: b4172dc6-ac72-fa81-4a8a-3ca93cec7ccb@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 1/7/21 1:46 AM, Tatsuro Yamada wrote:
> Hi Tomas,
>
>> Thanks, and Happy new year to you too.
>>
>> I almost pushed this, but I have one more question. listExtendedStats
>> first checks the server version, and errors out for pre-10 servers.
>> Shouldn't the logic building query check the server version too, to
>> decide whether to check the MCV stats? Otherwise it won't work on 10
>> and 11, which does not support the "mcv" stats.
>>> I don't recall what exactly is our policy regarding new psql with
>>> older server versions, but it seems strange to check for 10.0 and
>>> then fail anyway for "supported" versions.
>
> Thanks for your comments.
>
> I overlooked the check for MCV in the logic building query
> because I created the patch as a new feature on PG14.
> I'm not sure whether we should do back patch or not. However, I'll
> add the check on the next patch because it is useful if you decide to
> do the back patch on PG10, 11, 12, and 13.
>

+1

BTW perhaps a quick look at the other \d commands would show if there
are precedents. I didn't have time for that.

> I wonder the column names added by \dX+ is fine? For example,
> "Ndistinct_size" and "Dependencies_size". It looks like long names,
> but acceptable?
>

Seems acceptable - I don't have a better idea.

regards

--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2021-01-07 01:01:15 Re: [PATCH] Feature improvement for CLOSE, FETCH, MOVE tab completion
Previous Message Tatsuro Yamada 2021-01-07 00:46:37 Re: list of extended statistics on psql