Running 9.5 on Ubuntu 16.04 Unsure what database was backed up, I think 8.4
When I run pg_restore I get
pg_restore: implied data-only restore
--
-- PostgreSQL database dump
--
-- Started on 30608-10-13 11:53:01 MDT
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
SET row_security = off;
-- Completed on 2018-09-06 11:12:06 MDT
--
-- PostgreSQL database dump complete
--
When I run pg_restore -l
;
; Archive created at 30608-10-13 11:53:01 MDT
; dbname:
; TOC Entries: -1835365408
; Compression: -1
; Dump Version: 1.11-0
; Format: CUSTOM
; Integer: 4 bytes
; Offset: 8 bytes
;
;
; Selected TOC Entries:
;
Obviously there is a timestamp issue, and clearly the TOC entries and compression is off.
Not sure where to go from here. The file size indicates it should be a complete backup. I have multiple backups from same time frame, and they all report similar when I try to restore them.
Is there any way to uncompress the data portion of the file. I can hexedit and see the schema, but the data is in postgres's binary compressed (-Fc) format. I just need to find and verify a few entries, so if there's a manual way to inspect and search, that would work.
Any help is appreciated.