REASSIGN OWNED BY in current database only

Поиск
Список
Период
Сортировка
От Andrus
Тема REASSIGN OWNED BY in current database only
Дата
Msg-id a305fb19-3cbe-8b61-ea53-e8c2d6551a99@hot.ee
обсуждение исходный текст
Список pgsql-general

Hi!

Cluster contains lot databases.

All objects in database should owned by separate role  whose name is in form

databasename_owner

where databasename is this database name in cluster.

This role in granted to cluster users who should have acces to this database.

Database is restored  from other cluster where is has different name. After that

REASSIGN OWNED BY originaldbname_owner TO restoreddbname_owner

is used to force this role in restored database.

This command changes also owner of global objects also.

How to change  owner only in current database, leaving global objects owner unchanged ? Andrus.

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

Предыдущее
От: Phil Florent
Дата:
Сообщение: RE: Strange (and good) side effect of partitioning ?
Следующее
От: Soni M
Дата:
Сообщение: could not fsync file ""pg_wal/xlogtemp.23229"": Input/output error