Re: Database migration to RDS issues permissions

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Database migration to RDS issues permissions
Дата
Msg-id 65b1d74a-d60e-a528-f5bb-a071478561d2@aklaver.com
обсуждение исходный текст
Ответ на Re: Database migration to RDS issues permissions  ("Fran ..." <Bryan691@hotmail.com>)
Список pgsql-general
On 11/19/2016 11:12 AM, Fran ... wrote:
> Hi,
>
>
> You were right and I have tried to grant that role to user and I get
> following errors..

GRANT what role to what user?

>
>
> /pg_restore: [archiver (db)] Error while PROCESSING TOC:/
> /pg_restore: [archiver (db)] Error from TOC entry 4335; 2606 151422 FK
> CONSTRAINT worker_id_refs_id_6fd8ce95 owneruser/
> /pg_restore: [archiver (db)] could not execute query: ERROR:  relation
> "public.worker_status" does not exist/
> /    Command was: ALTER TABLE ONLY public.worker_status DROP CONSTRAINT
> worker_id_refs_id_6fd8ce95;/
>
> /pg_restore: [archiver (db)] Error from TOC entry 4079; 1259 151046
> INDEX id_e owneruser/
> /pg_restore: [archiver (db)] could not execute query: ERROR:  index
> "id_e" does not exist/
> /    Command was: DROP INDEX public.id_e;/
>
> I run the dump from origin with postgres user.
>

Pretty sure the issue is less where it is coming from then where it is going.
RDS has constraints on what a user can do. As I said before I do not use it,
so I cannot be of much help other then to point you at the docs:

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts

Using the rds_superuser Role


Seems to be you need to use the above role to do your restore.

--
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Strict min and max aggregate functions
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Database migration to RDS issues permissions