Re: How to restore a dump containing CASTs into a database with a new user?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: How to restore a dump containing CASTs into a database with a new user? |
| Дата | |
| Msg-id | 206414.1595183867@sss.pgh.pa.us обсуждение |
| Ответ на | How to restore a dump containing CASTs into a database with a new user? (Thorsten Schöning <tschoening@am-soft.de>) |
| Ответы |
Re: How to restore a dump containing CASTs into a database with a new user?
|
| Список | pgsql-general |
=?utf-8?Q?Thorsten_Sch=C3=B6ning?= <tschoening@am-soft.de> writes:
> Expectation was that whatever gets created in that DB is owned by the
> new user. But I'm running into the following error:
>> pg_restore: [archiver (db)] could not execute query: ERROR: must be owner of type character varying or type inet
The error message seems pretty clear to me.
> Or can the CAST really only be created when the new DB-owner owns
> those types? Is that necessary per database then or globally for the
> public schema or one of the template databases or ...?
It's a security thing. A user who can create such a cast can thereby
change the behavior of other people's queries.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера