Pg restore ошибки восстановления базы #580205


#0 by Sergio-ps
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)PostgreSQL8.4.3-3.1Cinpg_dump.exe" -i -h localhost -p 5432 -U postgres -Fc -b -f "D:Baсkup 1caza_%datetemp%.backup" baza а при восстановлении в новую,созданную средствами управления 1 сервером, базу выдает кучу ошибок "C:Program Files (x86)PostgreSQL8.4.3-3.1Cinpg_restore.exe" -h localhost -U postgres -c -d new "D:Baсkup 1caza_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 by vde69
не гонялся-бы ты поп за дешивизной (с) Балда
#2 by ansh15
Не надо создавать средствами управления 1C сервером, надо средствами postgres...
#3 by Sergio-ps
пробовал и средствами постгрес - результат одинаковый, лог только побольше немного
#4 by IVIuXa
попробуй к 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 by IVIuXa
и вообще -i -не есть хорошо
#6 by ansh15
флаг -c уберите, с ним - да, работает с ошибками.
#7 by Sergio-ps
сейчас попробую к dump прибавить значит -с, а у restore убрать флаг -с?
#8 by ansh15
к дамп ничего не надо прибавлять, там нормально все, а у ресторе - да, убрать -с
#9 by Sergio-ps
а с -i у дампа че делать?
#10 by ansh15
-i --ignore-version A deprecated option that is now ignored Это в Linux, в Windows не смотрел...
#11 by Sergio-ps
все равно ошибки остаются. только немнго меняется их количество, если ставить флаг -с или не ставить
Тэги: Админ
Ответить:
Комментарии доступны только авторизированным пользователям

В этой группе 1С