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 1olBE3-0001b6-9S for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 15:43:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olBE1-00013q-UR for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 15:43:21 +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 1olBE1-00013h-IQ for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 15:43:21 +0000 Received: from mta13.2.doruk.net.tr ([81.21.172.171] helo=mta13.doruk.net.tr) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olBDy-0007tS-L0 for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 15:43:20 +0000 Received: from cmail19.webkontrol.doruk.net.tr ([212.58.6.99]:51232) by mta13.doruk.net.tr with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olBDw-000ABS-7i for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 18:43:16 +0300 Received: from DESKTOPQCEPGF2 ([176.88.190.218]) by cmail19.webkontrol.doruk.net.tr (12.2.1 build 1 ) with ASMTP id 202210191843101386 for ; Wed, 19 Oct 2022 18:43:10 +0300 From: To: Subject: Cannot restore windows dump on linux Date: Wed, 19 Oct 2022 18:43:14 +0300 Message-ID: <011701d8e3d1$80a6ba70$81f42f50$@1nar.com.tr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0118_01D8E3EA.A5F61550" X-Mailer: Microsoft Outlook 16.0 Thread-Index: Adjjz/NY4fvQwCSsRXCXOFpT/hBTpQ== Content-Language: en-us List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multipart message in MIME format. ------=_NextPart_000_0118_01D8E3EA.A5F61550 Content-Type: text/plain; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable Hello, =20 I am using PostgreSQL 14.5 =20 I tried to move a Linux database to Windows. Both identical version. Linux dump successfully loaded on Windows system. Reason for changing system didn't work out and now I am trying to move = it back because it has some modifications. I just dumped a database backup on windows to a dump file. I see dump = file contains "\r\n" as new line identifier (hence windows dump). Just to clarify, this is not \N character I am mixing. When I try to restore windows dump on regular Linux system, I get a lot = of errors and it stops at this one below where this is a pure data load position. =20 ERROR: syntax error at or near "43589" LINE 1: 43589 7102e523-f401-4cce-852d-e537f863886f. =20 I also tried to stop at first error when restoring, in this case it = stops at below error =20 root@app:/home/ek# psql -v ON_ERROR_STOP=3D1 -U myuser -d mydb < last_backup.bak SET SET SET SET SET set_config ------------ =20 (1 sat=FDr) =20 SET SET SET SET ERROR: index "ix_xrates_date" does not exist =20 I searched the internet and I could not solve my problem. =20 How can I successfully dump on Widnows and restore on Linux? =20 Any help is appreciated. =20 Thanks & Regards, Ertan ------=_NextPart_000_0118_01D8E3EA.A5F61550 Content-Type: text/html; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am using = PostgreSQL 14.5

 

I tried to = move a Linux database to Windows. Both identical = version.

Linux dump successfully = loaded on Windows system.

Reason for = changing system didn’t work out and now I am trying to move it = back because it has some modifications.

I just dumped a database backup on windows to a dump = file. I see dump file contains “\r\n” as new line identifier = (hence windows dump). Just to clarify, this is not \N character I am = mixing.

When I try to restore windows = dump on regular Linux system, I get a lot of errors and it stops at this = one below where this is a pure data load position.

 

ERROR:=A0 syntax error at or near = "43589"

LINE 1: 43589 = 7102e523-f401-4cce-852d-e537f863886f…

 

I also tried = to stop at first error when restoring, in this case it stops at below = error

 

root@app:/home/ek# psql -v = ON_ERROR_STOP=3D1 -U myuser -d mydb < = last_backup.bak

SET

SET

SET

SET

SET

= set_config

------------

 

(1 = sat=FDr)

 

SET

SET

SET

SET

ERROR:=A0 index = "ix_xrates_date" does not exist

 

I searched = the internet and I could not solve my problem.

 

How can I = successfully dump on Widnows and restore on Linux?

 

Any help is = appreciated.

 

Thanks & Regards,

Ertan

------=_NextPart_000_0118_01D8E3EA.A5F61550--