Re: Error by restore a database

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Error by restore a database
Дата
Msg-id CAB7nPqQEFpYDEWuqmBew9=CJRNKrXTVmy7SyssX1XRioXVDL7g@mail.gmail.com
обсуждение исходный текст
Ответ на Error by restore a database  ("Sbis-Partner" <sbis-partner@mail.ru>)
Список pgsql-bugs
On Mon, Sep 9, 2013 at 11:38 PM, Sbis-Partner <sbis-partner@mail.ru> wrote:
> Hello!
>
> When you restore a database error occurs
>
> =ABPg_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" d=
oes
> not exist
>
>      Command was: ALTER TABLE public.dbschema OWNER TO "User" =BB.
User and group information are missing in your dump, this information
can be retrieved with pg_dumpall. There are two possibilities in your
case:
- Use the dump you created previously and complete it with data from
pg_dumpall --globals-only containing only user and tablespace
information
- Use a global dump with pg_dumpall with the user information as well
as the database
The latter solution is more instinctive IMO, but the former solution
will work fine as well.
--=20
Michael

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Cant start PostgreSQL Using command prompt
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #8440: sevices not started automatically