Re: list of extended statistics on psql

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: list of extended statistics on psql
Дата
Msg-id d876a1e3-9a6c-712e-7ab8-3dfa8a4cac1e@enterprisedb.com
обсуждение исходный текст
Ответ на RE: list of extended statistics on psql  ("Shinoda, Noriyoshi (PN Japan FSIP)" <noriyoshi.shinoda@hpe.com>)
Ответы Re: list of extended statistics on psql  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Список pgsql-hackers
On 1/17/21 2:41 AM, Shinoda, Noriyoshi (PN Japan FSIP) wrote:
> Hi, hackers.
> 
> I tested this committed feature.
> It doesn't seem to be available to non-superusers due to the inability to access pg_statistics_ext_data.
> Is this the expected behavior?
> 

Hmmm, that's a good point. Bummer we haven't noticed that earlier.

I wonder what the right fix should be - presumably we could do something 
like pg_stats_ext (we can't use that view directly, because it formats 
the data, so the sizes are different).

But should it list just the stats the user has access to, or should it 
list everything and leave the inaccessible fields NULL?


regards

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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Why does create_gather_merge_plan need make_sort?
Следующее
От: Tom Lane
Дата:
Сообщение: Calculation of relids (pull_varnos result) for PlaceHolderVars