Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tlsSq-002XVW-02 for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Feb 2025 16:34:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tlsSo-00DehF-Ep for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Feb 2025 16:34:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tlsSo-00Deh6-4O for pgsql-bugs@lists.postgresql.org; Sat, 22 Feb 2025 16:34:50 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tlsSl-000AUj-0X for pgsql-bugs@lists.postgresql.org; Sat, 22 Feb 2025 16:34:49 +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 51MGYlVQ3989822; Sat, 22 Feb 2025 11:34:47 -0500 From: Tom Lane To: arslanaliev@yahoo.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18823: pg_restore not work In-reply-to: <18823-e1faa13b1da74705@postgresql.org> References: <18823-e1faa13b1da74705@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sat, 22 Feb 2025 15:28:16 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3989820.1740242087.1@sss.pgh.pa.us> Date: Sat, 22 Feb 2025 11:34:47 -0500 Message-ID: <3989821.1740242087@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: > I have done this: > pg_dump --verbose -F c -Z 0 -U *heroku_user* -h *heroku_host* -p 5432 > d9jdaocgko2g41 > heroku.dump > pg_restore --verbose --no-acl --no-owner -h 'localhost' -p 5434 -d > d9jdaocgko2g41 heroku.dump > Recieved : > pg_restore: warning: invalid creation date in header > pg_restore: connecting to database for restore > pg_restore: implied data-only restore This looks like the heroku.dump file was corrupted somewhere between pg_dump and pg_restore. Did you transport it to a different machine, and if so how'd you do that exactly? Also, since you mention using Windows, it might be a good idea to use "-f heroku.dump" not "> heroku.dump" in the pg_dump call. I think shell redirection is not too friendly to non-text data on that platform. regards, tom lane