powered by simpleCommunicator - 2.0.51     © 2025 Programmizd 02
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / восстановдение бд 1с
3 сообщений из 3, страница 1 из 1
восстановдение бд 1с
    #40035241
parallax113
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
не получается восстановить бд 1с
после логина в базу - ошибка: Тип не определен '12b36cb8-d8ca-469a-b0e2-06fe2f26e97e'
подскажите как пофиксить?

создаю базу create database test_upp_2020_10;
восстанавливаю данные
/opt/pgpro/1c-12/bin/pg_restore -h 127.0.0.1 -p 5441 -Upostgres --clean --dbname test_upp_2020_10 -w --format=custom upp-2020-10-28_21.backup
потом конфигурацию
/opt/pgpro/1c-12/bin/psql -h 127.0.0.1 -p 5441 -Upostgres -d test_upp_2020_10 -c "COPY public.config FROM '/data/upp-2020-10-28_21.config.data' with binary;"



вот вывод при восстановлении из upp-2020-10-28_21.backup:
Код: plsql
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
pg_restore: from TOC entry 248; 1259 157692 TABLE _acc13 postgres
pg_restore: error: could not execute query: ERROR:  table "_acc13" does not exist
Command was: DROP TABLE public._acc13;
pg_restore: from TOC entry 247; 1259 157686 TABLE _acc12_extdim21591 postgres
pg_restore: error: could not execute query: ERROR:  table "_acc12_extdim21591" does not exist
Command was: DROP TABLE public._acc12_extdim21591;
pg_restore: from TOC entry 246; 1259 157679 TABLE _acc12 postgres
pg_restore: error: could not execute query: ERROR:  table "_acc12" does not exist
Command was: DROP TABLE public._acc12;
pg_restore: from TOC entry 26221; 2753 157678 OPERATOR FAMILY reltime_fill_ops postgres
pg_restore: error: could not execute query: ERROR:  operator family "public.reltime_fill_ops" does not exist for access method "hash"
Command was: DROP OPERATOR FAMILY public.reltime_fill_ops USING hash;
pg_restore: from TOC entry 26220; 2753 157677 OPERATOR FAMILY abstime_fill_ops postgres
pg_restore: error: could not execute query: ERROR:  operator family "public.abstime_fill_ops" does not exist for access method "hash"
Command was: DROP OPERATOR FAMILY public.abstime_fill_ops USING hash;
pg_restore: from TOC entry 25059; 1255 157676 AGGREGATE min(bytea) postgres
pg_restore: error: could not execute query: ERROR:  aggregate public.min(bytea) does not exist
Command was: DROP AGGREGATE public.min(bytea);
pg_restore: from TOC entry 25058; 1255 157675 AGGREGATE min(boolean) postgres
pg_restore: error: could not execute query: ERROR:  aggregate public.min(boolean) does not exist
Command was: DROP AGGREGATE public.min(boolean);
pg_restore: from TOC entry 25057; 1255 157674 AGGREGATE max(bytea) postgres
pg_restore: error: could not execute query: ERROR:  aggregate public.max(bytea) does not exist
Command was: DROP AGGREGATE public.max(bytea);
pg_restore: from TOC entry 25056; 1255 157673 AGGREGATE max(boolean) postgres
pg_restore: error: could not execute query: ERROR:  aggregate public.max(boolean) does not exist
Command was: DROP AGGREGATE public.max(boolean);
pg_restore: from TOC entry 5257; 1255 157672 FUNCTION vassn(boolean) postgres
pg_restore: error: could not execute query: ERROR:  function public.vassn(boolean) does not exist
Command was: DROP FUNCTION public.vassn(boolean);
pg_restore: from TOC entry 5256; 1255 157671 FUNCTION state_min_bytea(bytea, bytea) postgres
pg_restore: error: could not execute query: ERROR:  function public.state_min_bytea(bytea, bytea) does not exist
Command was: DROP FUNCTION public.state_min_bytea(st bytea, inp bytea);
pg_restore: from TOC entry 5255; 1255 157670 FUNCTION state_min_bool(boolean, boolean) postgres
pg_restore: error: could not execute query: ERROR:  function public.state_min_bool(boolean, boolean) does not exist
Command was: DROP FUNCTION public.state_min_bool(st boolean, inp boolean);
pg_restore: from TOC entry 5254; 1255 157669 FUNCTION state_max_bytea(bytea, bytea) postgres
pg_restore: error: could not execute query: ERROR:  function public.state_max_bytea(bytea, bytea) does not exist
Command was: DROP FUNCTION public.state_max_bytea(st bytea, inp bytea);
pg_restore: from TOC entry 5253; 1255 157668 FUNCTION state_max_bool(boolean, boolean) postgres
pg_restore: error: could not execute query: ERROR:  function public.state_max_bool(boolean, boolean) does not exist
Command was: DROP FUNCTION public.state_max_bool(st boolean, inp boolean);
pg_restore: from TOC entry 5252; 1255 157667 FUNCTION plpgsql_call_handler() postgres
pg_restore: error: could not execute query: ERROR:  function public.plpgsql_call_handler() does not exist
Command was: DROP FUNCTION public.plpgsql_call_handler();
pg_restore: from TOC entry 5251; 1255 157666 FUNCTION datediff2(character varying, timestamp without time zone, timestamp without time zone) postgres
pg_restore: error: could not execute query: ERROR:  function public.datediff2(character varying, timestamp without time zone, timestamp without time zone) does not exist
Command was: DROP FUNCTION public.datediff2(character varying, timestamp without time zone, timestamp without time zone);
pg_restore: from TOC entry 5250; 1255 157665 FUNCTION datediff(character varying, timestamp without time zone, timestamp without time zone) postgres
pg_restore: error: could not execute query: ERROR:  function public.datediff(character varying, timestamp without time zone, timestamp without time zone) does not exist
Command was: DROP FUNCTION public.datediff(character varying, timestamp without time zone, timestamp without time zone);
pg_restore: from TOC entry 5249; 1255 157664 FUNCTION btrim(bytea, integer) postgres
pg_restore: error: could not execute query: ERROR:  function public.btrim(bytea, integer) does not exist
Command was: DROP FUNCTION public.btrim(bdata bytea, blen integer);
pg_restore: from TOC entry 5248; 1255 157663 FUNCTION binrowver(integer) postgres
pg_restore: error: could not execute query: ERROR:  function public.binrowver(integer) does not exist
Command was: DROP FUNCTION public.binrowver(p1 integer);
pg_restore: from TOC entry 4; 3079 156615 EXTENSION mchar (no owner)
pg_restore: error: could not execute query: ERROR:  extension "mchar" does not exist
Command was: DROP EXTENSION mchar;
pg_restore: from TOC entry 2; 3079 157494 EXTENSION fulleq (no owner)
pg_restore: error: could not execute query: ERROR:  extension "fulleq" does not exist
Command was: DROP EXTENSION fulleq;
pg_restore: from TOC entry 3; 3079 157492 EXTENSION fasttrun (no owner)
pg_restore: error: could not execute query: ERROR:  extension "fasttrun" does not exist
Command was: DROP EXTENSION fasttrun;
...
Рейтинг: 0 / 0
восстановдение бд 1с
    #40035259
parallax113
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
возможно, что бекап этот был сделан pg_dump версии 11 posgtres от 1c, а восстанавливаю бинарником pg_restore от 12 pgpro
т.е. более поздние бекапы, которые бекапились с помощью 12 постгрес восстанавливаются с тем же выводом сообщений, но теперь нет подобной ошибки при логине в базу
...
Рейтинг: 0 / 0
восстановдение бд 1с
    #40035587
Shweik
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
parallax113
возможно, что бекап этот был сделан pg_dump версии 11 posgtres от 1c, а восстанавливаю бинарником pg_restore от 12 pgpro
т.е. более поздние бекапы, которые бекапились с помощью 12 постгрес восстанавливаются с тем же выводом сообщений, но теперь нет подобной ошибки при логине в базу

Ну так обновляйте 11-й до 12.5.
Недавно пришлось подобное делать.
Там случай был ещё более запущенный: в проде несколько лет жили на 9.2 а бакапы делала другая система и она обновляли,
причём до ванильного 12.X.
Проверьте в виртуалке со свежим 12.5, накатите бакап и прицепите инфобазу.
Думаю всё получится.
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / восстановдение бд 1с
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]