From: | John R Pierce <pierce(at)hogranch(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Error by restore a database |
Date: | 2013-09-10 17:03:20 |
Message-ID: | 522F50D8.5030202@hogranch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On 9/9/2013 11:38 PM, Sbis-Partner wrote:
>
> When you restore a database error occurs
>
> «Pg_restore: creating TABLE dbschema
>
> pg_restore: [archiver (db)] Error from TOC entry 1428; 1259 83487
> TABLE dbschema User
>
> pg_restore: [archiver (db)] could not execute query: ERROR: role
> "User" does not exist
>
> Command was: ALTER TABLE public.dbschema OWNER TO "User" ».
>
> Please help me to solve this problem.
>
users are not stored as part of a single database, they are global to
the database cluster. you need to create any users required by a
given database before you can restore it.
CREATE USER "User" WITH PASSWORD 'somekindapassword';
Note the same is true for tablespaces, if you use those.
--
john r pierce 37N 122W
somewhere on the middle of the left coast
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2013-09-10 20:48:32 | Re: BUG #7836: COPY command does not honor 'FORMAT' option |
Previous Message | rajapraveend | 2013-09-10 10:53:13 | BUG #8442: Postgresql Crash Frequently and It is installed on m68k platorm |