Re: Autovaccuum vs temp tables crash

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Autovaccuum vs temp tables crash
Дата
Msg-id 20190223151846.GE8725@paquier.xyz
обсуждение исходный текст
Ответ на Re: Autovaccuum vs temp tables crash  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Autovaccuum vs temp tables crash  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On Sat, Feb 23, 2019 at 02:48:58PM +0100, Magnus Hagander wrote:
> I think we need to either prevent dropping of temp namespaces *or* we need
> to create a new entry in pg_namespace in this particular case.

Perhaps I am missing something, but it would be just more simple to
now allow users to restrict that?

> I wonder if other "fun" things could happen if you go rename the namespace,
> haven't tried that yet...

In this case the OID remains the same, still there are some cases
where we rely on the namespace name, and one is CLUSTER.
objectaddress.c uses as well get_namespace_name_or_temp(), which would
be messed up, so it would be better to prevent a temp namespace to be
renamed.  Could ALTER SCHEMA OWNER TO also be a problem?
--
Michael

Вложения

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: FOP warnings about id attributes in title tags
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Autovaccuum vs temp tables crash