{"time":"2026-07-07T20:08:00.704169122Z","level":"INFO","source":{"function":"postgres-service/internal/postgres.(*InMemoryRecoveryManager).StartRestore.func1","file":"postgres-service/internal/postgres/postgres_recovery_manager.go","line":99},"msg":"starting postgres restore","backup_id":"0a24dd4a-4b3e-4fec-ba1a-9a87f6dc9069","backup_file":"/opt/splunk/var/packages/data/postgres/db/backups/hostaddr=172.18.0.2 dbname=testdb-20260707T200757Z-3785fff4-1e7c-4db1-9fc8-f8209393303a.dump","database":"dbname=template1 passfile=/opt/splunk/var/packages/data/postgres/db/.pgpass"}
{"time":"2026-07-07T20:08:00.790236603Z","level":"ERROR","source":{"function":"postgres-service/internal/postgres.(*InMemoryRecoveryManager).restore","file":"postgres-service/internal/postgres/postgres_recovery_manager.go","line":200},"msg":"failed to restore postgres from backup","error":"exit status 1","restore_id":"0a24dd4a-4b3e-4fec-ba1a-9a87f6dc9069","backup_file":"/opt/splunk/var/packages/data/postgres/db/backups/hostaddr=172.18.0.2 dbname=testdb-20260707T200757Z-3785fff4-1e7c-4db1-9fc8-f8209393303a.dump","database":"dbname=template1 passfile=/opt/splunk/var/packages/data/postgres/db/.pgpass","output":"pg_restore: connecting to database for restore\npg_restore: dropping BLOB METADATA 16392..16404\npg_restore: while PROCESSING TOC:\npg_restore: from TOC entry 3453; 2613 16392 BLOB METADATA 16392..16404 test\npg_restore: error: could not execute query: ERROR:  large object 16392 does not exist\nCommand was: SELECT pg_catalog.lo_unlink('16392');\npg_restore: error: could not execute query: ERROR:  large object 16404 does not exist\nCommand was: SELECT pg_catalog.lo_unlink('16404');\npg_restore: dropping TABLE pwn_variant\npg_restore: from TOC entry 216; 1259 16398 TABLE pwn_variant test\npg_restore: error: could not execute query: ERROR:  table \"pwn_variant\" does not exist\nCommand was: DROP TABLE public.pwn_variant;\npg_restore: dropping TABLE pwn\npg_restore: from TOC entry 215; 1259 16386 TABLE pwn test\npg_restore: error: could not execute query: ERROR:  table \"pwn\" does not exist\nCommand was: DROP TABLE public.pwn;\npg_restore: dropping FUNCTION pwn_variant()\npg_restore: from TOC entry 218; 1255 16397 FUNCTION pwn_variant() test\npg_restore: error: could not execute query: ERROR:  function public.pwn_variant() does not exist\nCommand was: DROP FUNCTION public.pwn_variant();\npg_restore: dropping FUNCTION pwn()\npg_restore: from TOC entry 217; 1255 16385 FUNCTION pwn() test\npg_restore: error: could not execute query: ERROR:  function public.pwn() does not exist\nCommand was: DROP FUNCTION public.pwn();\npg_restore: creating FUNCTION \"public.pwn()\"\npg_restore: error: could not execute query: ERROR:  role \"test\" does not exist\nCommand was: ALTER FUNCTION public.pwn() OWNER TO test;\n\npg_restore: creating FUNCTION \"public.pwn_variant()\"\npg_restore: from TOC entry 218; 1255 16397 FUNCTION pwn_variant() test\npg_restore: error: could not execute query: ERROR:  role \"test\" does not exist\nCommand was: ALTER FUNCTION public.pwn_variant() OWNER TO test;\n\npg_restore: creating TABLE \"public.pwn\"\npg_restore: from TOC entry 215; 1259 16386 TABLE pwn test\npg_restore: error: could not execute query: ERROR:  role \"test\" does not exist\nCommand was: ALTER TABLE public.pwn OWNER TO test;\n\npg_restore: creating TABLE \"public.pwn_variant\"\npg_restore: from TOC entry 216; 1259 16398 TABLE pwn_variant test\npg_restore: error: could not execute query: ERROR:  role \"test\" does not exist\nCommand was: ALTER TABLE public.pwn_variant OWNER TO test;\n\npg_restore: processing data for table \"public.pwn\"\npg_restore: processing data for table \"public.pwn_variant\"\npg_restore: executing BLOB METADATA 16392..16404\npg_restore: from TOC entry 3453; 2613 16392 BLOB METADATA 16392..16404 test\npg_restore: error: could not execute query: ERROR:  role \"test\" does not exist\nCommand was: ALTER LARGE OBJECT 16392 OWNER TO test;\npg_restore: error: could not execute query: ERROR:  role \"test\" does not exist\nCommand was: ALTER LARGE OBJECT 16404 OWNER TO test;\npg_restore: processing BLOBS\npg_restore: restoring large object with OID 16392\npg_restore: restoring large object with OID 16404\npg_restore: restored 2 large objects\npg_restore: warning: errors ignored on restore: 12\n"}
{"time":"2026-07-07T20:08:00.790296611Z","level":"ERROR","source":{"function":"postgres-service/internal/postgres.(*InMemoryRecoveryManager).StartRestore.func1","file":"postgres-service/internal/postgres/postgres_recovery_manager.go","line":103},"msg":"postgres restore failed","backup_id":"0a24dd4a-4b3e-4fec-ba1a-9a87f6dc9069","backup_file":"/opt/splunk/var/packages/data/postgres/db/backups/hostaddr=172.18.0.2 dbname=testdb-20260707T200757Z-3785fff4-1e7c-4db1-9fc8-f8209393303a.dump","database":"dbname=template1 passfile=/opt/splunk/var/packages/data/postgres/db/.pgpass","error":"exit status 1\n\tPostgres restore failed"}
