Database migration to RDS issues permissions

Поиск
Список
Период
Сортировка
От Fran ...
Тема Database migration to RDS issues permissions
Дата
Msg-id AM4PR03MB17489BFDCF1D1A88504CB27597B30@AM4PR03MB1748.eurprd03.prod.outlook.com
обсуждение исходный текст
Ответы Re: Database migration to RDS issues permissions  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general

Hi,


I have to migrate a production database to RDS. This is the size and info:


 database      | owneruser | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/owneruser            +| 32 GB   | pg_default | 


Origin database:

1 database

1 owneruser with superuser permission


Backup archived size is 2G and it takes less than a minute.


I am trying to running the following steps in a DEV environment and I am having problems with destination permissions.


1º-Creating RDS instance

Done and I can connect to.


2º-Making backup:

pg_dump -F c database > backup_db.dump

3º-Creating user,database and grant permissions in RDS.
Create database database;
CREATE USER owneruser WITH PASSWORD 'owneruser';
create database database;
grant all privileges on database to ownerdatabase;

4º-Restoring backup
pg_restore -d database -h hostname -U postgres -F c -f log_file.log backup.db.dump

While restoring is working it prints a lot of permissions errors.

It's being hard to find "how to" and documentations about right permissions.

Regards.

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

Предыдущее
От: Man Trieu
Дата:
Сообщение: How to change order sort of table in HashJoin
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Database migration to RDS issues permissions