Re: restore error - language "plperlu" is not trusted

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: restore error - language "plperlu" is not trusted
Дата
Msg-id 20856.1071769789@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: restore error - language "plperlu" is not trusted  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane wrote:
>> Uh, no, because you can say something like
>> revoke all on language plperlu from public;
>> and end up with non-null lanacl (because it instantiates the default
>> assumption that the owner has all privileges).

> OK, that needs to be disallowed.

Fair enough.  I thought it was a bit odd to disallow GRANT but allow
REVOKE anyway.

>> We could possibly hack the backend to avoid that, but I think pg_dump
>> will need the special-case test anyway since it has to be able to
>> cope with existing databases, wherein lanacl may be non-null.

> So far we know of 1 such database.  I'd like to see some more before we
> bother about it.

It's a one-line addition --- just put the dumpACL call inside
"if (lanpltrusted)".  I think it is a reasonable change.  We'd have to
do something anyway, because the existing pg_dump code is certainly
broken for dumping untrusted languages from pre-7.3 databases (it
assumes a nonempty lanacl setting in that case).

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: restore error - language "plperlu" is not trusted
Следующее
От: Ron St-Pierre
Дата:
Сообщение: Re: Function Returning SETOF Problem