Re: Quirk of pg_temp schemas ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Quirk of pg_temp schemas ...
Дата
Msg-id 3787327.1628609435@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Quirk of pg_temp schemas ...  (Greg Stark <stark@mit.edu>)
Ответы Re: Quirk of pg_temp schemas ...  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Greg Stark <stark@mit.edu> writes:
> While fixing up a patch I had dealing with temporary tables I noticed
> a bit of a quirk with pg_temp schemas. Namely that we have no actual
> meta data marking them as temporary aside from their names. And we
> don't do anything to protect that -- superuser can happily issue ALTER
> SCHEMA RENAME to rename it to a name that doesn't match pg_temp*.

This seems to me to be not very different from the 1001 other ways that
a superuser can break a database.  If *non* superusers could rename
those schemas then I'd agree there's a problem to be solved.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] test/ssl: rework the sslfiles Makefile target
Следующее
От: Sadhuprasad Patro
Дата:
Сообщение: Re: Support reset of Shared objects statistics in "pg_stat_reset" function