Re: BUG #6021: There is no difference between default and empty access privileges with \dp

Поиск
Список
Период
Сортировка
Искать
От
Robert Haas
Тема
Re: BUG #6021: There is no difference between default and empty access privileges with \dp
Дата
в 14:10:30
Msg-id
BANLkTi=jjGNev+f-h_j03pd-wUb4DDxaKw@mail.gmail.com
Ответ на
Список
Дерево обсуждения
BUG #6021: There is no difference between default and empty access privileges with \dp "psql \dp showing empty Access privileges column for {}" <gszpetkowski@gmail.com>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Grzegorz Szpetkowski <gszpetkowski@gmail.com>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Grzegorz Szpetkowski <gszpetkowski@gmail.com>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Grzegorz Szpetkowski <gszpetkowski@gmail.com>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Robert Haas <robertmhaas@gmail.com>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Robert Haas <robertmhaas@gmail.com>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #6021: There is no difference between default and empty access privileges with \dp Tom Lane <tgl@sss.pgh.pa.us>
On Sun, May 15, 2011 at 5:02 PM, Tom Lane  wrote:
> Robert Haas  writes:
>> On Thu, May 12, 2011 at 6:20 PM, Tom Lane  wrote:
>>> One possibility is to start showing "default" when the ACL is null,
>>> which would be quite easy to implement:
>>>
>>> =A0 =A0 =A0 =A0COALESCE(array_to_string(c.relacl, E'\n'), 'default')
>>>
>>> But that might be too big a change.
>
>> I don't think that's too big a change. =A0ISTM we ought to change
>> something. =A0Another idea would be to always show the permissions, even
>> if nothing has been changed from the defaults.
>
> That would require psql to have local knowledge about what the defaults
> are, which is someplace I'd rather not go ...

Ugh.  It's too bad the server doesn't expose that.  But given that it
doesn't, your idea sounds good to me.

--=20
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
В списке pgsql-bugs по дате отправления
FAQ