From: | Patrick B <patrickbakerbr(at)gmail(dot)com> |
---|---|
To: | Ilya Kazakevich <Ilya(dot)Kazakevich(at)jetbrains(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Permissions pg_dump / import |
Date: | 2016-08-23 01:32:02 |
Message-ID: | CAJNY3iuYsLKzSmZXF9h+JE5jhPn2gWp-FvSWH+3+Rtr-dAi0Hw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi guys,
I'm doing a pg_dump and a pg_restore on the same command, using different
usernames and databases names.:
pg_dump --format=custom -v --no-password --no-owner --username=teste1
> --dbname=test1 --host=11.11.11.11 | pg_restore -v --schema=public
> --no-password --no-owner --username=master --host=11.11.11.12
> --dbname=new_test1
But I'm getting some permissions errors:
could not execute query: ERROR: role "devel" does not exist
To fix that, I ran on the server; also I'm using "*--no-owner*" and though
this kind of problem wouldn't be happening?
REVOKE ALL ON SCHEMA public FROM devel;
But it seems not working, as I'm still getting the errors.
Do you guys have any tips to solve this one?
Cheers
Patrick
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-08-23 01:41:14 | Re: Permissions pg_dump / import |
Previous Message | Tom Lane | 2016-08-23 01:23:52 | Re: Unique constraint on field inside composite type. |