What's the point of allow_system_table_mods?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема What's the point of allow_system_table_mods?
Дата
Msg-id 20190509145054.byiwa255xvdbfh3a@alap3.anarazel.de
обсуждение исходный текст
Ответы Re: What's the point of allow_system_table_mods?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

I'm not quite clear what the goal of allow_system_table_mods
is. Obviously, it's extremely dangerous to target catalogs with DDL. But
at the same time we allow DML to catalog tables without any sort of
restriction.

I also don't understand what's achieved by having
allow_system_table_mods be PGC_POSTMASTER. If anything it seems to make
it more likely to resort to a) leaving it enabled all the time b) use
DML to modify catalogs.

Wouldn't it be more sensible to disallow all catalog modifications
unless allow_system_table_mods was enabled, and make
allow_system_table_mods PGC_SUSET and GUC_DISALLOW_IN_FILE?

Greetings,

Andres Freund



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Fuzzy thinking in is_publishable_class
Следующее
От: Tom Lane
Дата:
Сообщение: Re: What's the point of allow_system_table_mods?