psql \dX: list extended statistics objects
authorTomas Vondra <tomas.vondra@postgresql.org>
Wed, 20 Jan 2021 21:56:06 +0000 (22:56 +0100)
committerTomas Vondra <tomas.vondra@postgresql.org>
Wed, 20 Jan 2021 21:57:21 +0000 (22:57 +0100)
commitad600bba0422dde4b73fbd61049ff2a3847b068a
treebef13ef5e1663a23dd116bbe5823b3d2f9146678
parent9d23c15a034ba163ae1045b945954e8e1bcfc72a
psql \dX: list extended statistics objects

The new command lists extended statistics objects. All past releases
with extended statistics are supported.

This is a simplified version of commit 891a1d0bca, which had to be
reverted due to not considering pg_statistic_ext_data is not accessible
by regular users. Fields requiring access to this catalog were removed.
It's possible to add them, but it'll require changes to core.

Author: Tatsuro Yamada
Reviewed-by: Julien Rouhaud, Alvaro Herrera, Tomas Vondra, Noriyoshi Shinoda
Discussion: https://postgr.es/m/c027a541-5856-75a5-0868-341301e1624b%40nttcom.co.jp_1
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/describe.c
src/bin/psql/describe.h
src/bin/psql/help.c
src/bin/psql/tab-complete.c
src/test/regress/expected/stats_ext.out
src/test/regress/sql/stats_ext.sql