|
Pg restore ошибки восстановления базы | ☑ | ||
---|---|---|---|---|
0
Sergio-ps
16.11.11
✎
11:42
|
win serv 2008 x64
postgres 8.4.3.3 1c 8.2.14.533 выполняется бэкап баз из постгреса set datetemp=%date:~8,2%%date:~3,2%%date:~0,2% "C:\Program Files (x86)\PostgreSQL\8.4.3-3.1C\bin\pg_dump.exe" -i -h localhost -p 5432 -U postgres -Fc -b -f "D:\Baсkup 1c\baza_%datetemp%.backup" baza а при восстановлении в новую,созданную средствами управления 1 сервером, базу выдает кучу ошибок "C:\Program Files (x86)\PostgreSQL\8.4.3-3.1C\bin\pg_restore.exe" -h localhost -U postgres -c -d new "D:\Baсkup 1c\baza_111116.backup" Лог такой: ee_gist_in(cstring) does not exist Command was: DROP FUNCTION public.ltree_gist_in(cstring); pg_restore: [archiver (db)] Error from TOC entry 588; 1255 17836 FUNCTION ltree_out(ltree) postgres pg_restore: [archiver (db)] could not execute query: ERROR: type "ltree" does not exist Command was: DROP FUNCTION public.ltree_out(ltree); pg_restore: [archiver (db)] Error from TOC entry 587; 1255 17835 FUNCTION ltree_ in(cstring) postgres ... ... operator family mvarchar_fill_ops for access method hash depends on schema public HINT: Use DROP ... CASCADE to drop the dependent objects too. Command was: DROP SCHEMA public; pg_restore: [archiver (db)] could not execute query: ERROR: schema "public" already exists Command was: CREATE SCHEMA public; WARNING: errors ignored on restore: 7158 |
|||
1
vde69
16.11.11
✎
11:47
|
не гонялся-бы ты поп за дешивизной (с) Балда
|
|||
2
ansh15
16.11.11
✎
14:37
|
(0) Не надо создавать средствами управления 1C сервером, надо средствами postgres...
|
|||
3
Sergio-ps
17.11.11
✎
09:15
|
пробовал и средствами постгрес - результат одинаковый, лог только побольше немного
|
|||
4
IVIuXa
17.11.11
✎
10:17
|
(0)
попробуй к pg_dump.exe добавить (лень переводить) -C --create Begin the output with a command to create the database itself and reconnect to the created database. (With a script of this form, it doesn't matter which database you connect to before running the script.) |
|||
5
IVIuXa
17.11.11
✎
10:34
|
(0)
и вообще -i -не есть хорошо |
|||
6
ansh15
17.11.11
✎
12:32
|
(3) флаг -c уберите, с ним - да, работает с ошибками.
|
|||
7
Sergio-ps
17.11.11
✎
12:37
|
сейчас попробую к dump прибавить значит -с, а у restore убрать флаг -с?
|
|||
8
ansh15
17.11.11
✎
12:40
|
(7) к дамп ничего не надо прибавлять, там нормально все, а у ресторе - да, убрать -с
|
|||
9
Sergio-ps
17.11.11
✎
13:00
|
а с -i у дампа че делать?
|
|||
10
ansh15
17.11.11
✎
14:39
|
man pg_dump
-i --ignore-version A deprecated option that is now ignored Это в Linux, в Windows не смотрел... |
|||
11
Sergio-ps
21.11.11
✎
10:29
|
все равно ошибки остаются. только немнго меняется их количество, если ставить флаг -с или не ставить
|
Форум | Правила | Описание | Объявления | Секции | Поиск | Книга знаний | Вики-миста |