Re: [PATCH] Add size/acl information when listing databases

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Add size/acl information when listing databases
Дата
Msg-id 3235.1200803657@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Add size/acl information when listing databases  (Andrew Gilligan <andy@tcpd.net>)
Ответы Re: [PATCH] Add size/acl information when listing databases  (Andrew Gilligan <andy@tcpd.net>)
Список pgsql-hackers
Andrew Gilligan <andy@tcpd.net> writes:
> Showing the size on \l+ probably makes more sense, but I imagine that
> would require a very different approach due to the permissions changes?

I haven't experimented, but perhaps something along the lines of
case when has_database_privilege(current_user, db.oid, 'connect')then pg_database_size...else nullend

would fix it.
        regards, tom lane


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

Предыдущее
От: Andrew Gilligan
Дата:
Сообщение: Re: [PATCH] Add size/acl information when listing databases
Следующее
От: Andrew Gilligan
Дата:
Сообщение: Re: [PATCH] Add size/acl information when listing databases