Re: Cannot create a type in pg_catalog

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Cannot create a type in pg_catalog
Дата
Msg-id 3093.1187882574@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Cannot create a type in pg_catalog  (Dave Page <dpage@postgresql.org>)
Ответы Re: Cannot create a type in pg_catalog  (Dave Page <dpage@postgresql.org>)
Список pgsql-bugs
Dave Page <dpage@postgresql.org> writes:
> Tom Lane wrote:
>> The actual prohibition is on inserting a new pg_class row, which Dave's
>> command is trying to do because he's trying to create a composite type.

> If thats the case, then there's another inconsistency as I can insert a
> pg_class row manually without any problems:

Right, that's the end of it that's protected by rolcatupdate.  The
check that is firing on you is in heap_create(), which is invoked
for composite types.

The whole allow_system_table_mods mechanism dates from Berkeley days,
and I guess you could argue that we might not need it anymore given
the improvements since then in ACL enforcement.  I'm not in a big
hurry to rip it out though.  Not being allowed to TRUNCATE pg_class
seems like a Good Thing to me.

            regards, tom lane

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Cannot create a type in pg_catalog
Следующее
От: Dave Page
Дата:
Сообщение: Re: Cannot create a type in pg_catalog