| From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: |
| Date: | 2015-11-13 14:05:00 |
| Message-ID: | 5645EE0C.7090008@aklaver.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 11/12/2015 09:38 PM, Alex Luya wrote:
> Hello,
> I created a new database by
>
> create database icare;
>
> then quit off psql and run:
> pg_restore --clean --create --exit-on-error --dbname=icare
> icare-test.tar
Please show the pg_backup script that created icare-test.tar
Also in the database you are dumping from, in psql, what is the output from:
\l
\dn
>
> it complains:
>
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
> pg_restore: [archiver (db)] Error from TOC entry 21; 2615
> 80924 SCHEMA icare icare
> pg_restore: [archiver (db)] could not execute query: ERROR:
> permission denied for database icare
> Command was: CREATE SCHEMA icare;
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2015-11-13 14:13:38 | Re: |
| Previous Message | Leonardo M. Ramé | 2015-11-13 13:58:42 | Re: Array_to_json remove brackets |