mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Revert "psql \dX: list extended statistics objects"
Reverts 891a1d0bca
, because the new psql command \dX only worked for
users users who can read pg_statistic_ext_data catalog, and most regular
users lack that privilege (the catalog may contain sensitive user data).
Reported-by: Noriyoshi Shinoda
Discussion: https://postgr.es/m/c027a541-5856-75a5-0868-341301e1624b%40nttcom.co.jp_1
This commit is contained in:
@ -1505,7 +1505,7 @@ psql_completion(const char *text, int start, int end)
|
||||
"\\dF", "\\dFd", "\\dFp", "\\dFt", "\\dg", "\\di", "\\dl", "\\dL",
|
||||
"\\dm", "\\dn", "\\do", "\\dO", "\\dp", "\\dP", "\\dPi", "\\dPt",
|
||||
"\\drds", "\\dRs", "\\dRp", "\\ds", "\\dS",
|
||||
"\\dt", "\\dT", "\\dv", "\\du", "\\dx", "\\dX", "\\dy",
|
||||
"\\dt", "\\dT", "\\dv", "\\du", "\\dx", "\\dy",
|
||||
"\\e", "\\echo", "\\ef", "\\elif", "\\else", "\\encoding",
|
||||
"\\endif", "\\errverbose", "\\ev",
|
||||
"\\f",
|
||||
@ -3974,8 +3974,6 @@ psql_completion(const char *text, int start, int end)
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL);
|
||||
else if (TailMatchesCS("\\dx*"))
|
||||
COMPLETE_WITH_QUERY(Query_for_list_of_extensions);
|
||||
else if (TailMatchesCS("\\dX*"))
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_statistics, NULL);
|
||||
else if (TailMatchesCS("\\dm*"))
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_matviews, NULL);
|
||||
else if (TailMatchesCS("\\dE*"))
|
||||
|
Reference in New Issue
Block a user