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 1lYvQ4-00069h-NU for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Apr 2021 18:48:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYvQ2-0006Bv-7K for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Apr 2021 18:48:18 +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 1lYvQ2-0006Aj-17 for pgsql-bugs@lists.postgresql.org; Tue, 20 Apr 2021 18:48:18 +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 1lYvPz-0003sW-F4 for pgsql-bugs@lists.postgresql.org; Tue, 20 Apr 2021 18:48:17 +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 13KImCbm632959; Tue, 20 Apr 2021 14:48:13 -0400 From: Tom Lane To: frankaen@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16973: Backward compatibility: pg_restore: [archiver] unsupported version (1.14) in file header In-reply-to: <16973-399e0677315a26a6@postgresql.org> References: <16973-399e0677315a26a6@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 20 Apr 2021 07:17:18 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <632957.1618944492.1@sss.pgh.pa.us> Date: Tue, 20 Apr 2021 14:48:12 -0400 Message-ID: <632958.1618944492@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > Full dump created on April 12, 2021, default Ubuntu 18.04 LTS, cannot be > restored on April 19, with the current output: > psql --version > psql (PostgreSQL) 10.16 (Ubuntu 10.16-1.pgdg20.04+1) > pg_restore returns: > pg_restore: [archiver] unsupported version (1.14) in file header The most obvious explanation for this is that you made the dump with a v12-or-later pg_dump, and are now trying to restore it with a pre-v12 pg_restore. If so, the failure is expected. regards, tom lane