Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsSiv-0005bN-2S for pgsql-admin@arkaria.postgresql.org; Sun, 13 Jun 2021 16:12:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lsSiu-00075N-0P for pgsql-admin@arkaria.postgresql.org; Sun, 13 Jun 2021 16:12:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsSit-00075C-Ny for pgsql-admin@lists.postgresql.org; Sun, 13 Jun 2021 16:12:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsSiq-0006J8-50 for pgsql-admin@postgresql.org; Sun, 13 Jun 2021 16:12:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15DGCPwH052962; Sun, 13 Jun 2021 12:12:25 -0400 From: Tom Lane To: Wells Oliver cc: pgsql-admin Subject: Re: pg_restore: warning: invalid creation date in header In-reply-to: References: <50545.1623597209@sss.pgh.pa.us> <52307.1623599837@sss.pgh.pa.us> Comments: In-reply-to Wells Oliver message dated "Sun, 13 Jun 2021 09:02:41 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <52960.1623600745.1@sss.pgh.pa.us> Date: Sun, 13 Jun 2021 12:12:25 -0400 Message-ID: <52961.1623600745@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Wells Oliver writes: > Tom, it's a directory format dump, what file would make the most sense to > run oc on? Or does this not work w/a directory? The toc.dat file. You should see something like $ od -c mydump/toc.dat | head 0000000 P G D M P 001 016 \0 004 \b 003 001 001 \0 \0 \0 0000020 \0 027 \0 \0 \0 \0 \n \0 \0 \0 \0 \f \0 \0 \0 \0 0000040 \r \0 \0 \0 \0 005 \0 \0 \0 \0 y \0 \0 \0 \0 001 0000060 \0 \0 \0 \0 \n \0 \0 \0 r e g r e s s i 0000100 o n \0 \a \0 \0 \0 1 4 b e t a 1 \0 \a 0000120 \0 \0 \0 1 4 b e t a 1 \0 315 \b \0 \0 \0 0000140 u 037 \0 \0 \0 \0 \0 \0 \0 \0 001 \0 \0 \0 0 \0 0000160 001 \0 \0 \0 0 \0 \b \0 \0 \0 E N C O D I 0000200 N G \0 \b \0 \0 \0 E N C O D I N G \0 0000220 002 \0 \0 \0 \0 # \0 \0 \0 S E T c l i If there's not a "PGDMP" signature at the start then it's the wrong file. regards, tom lane