Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxhdS-0003mF-CG for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jun 2014 19:04:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WxhdR-0006Nw-By for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jun 2014 19:04:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WxaXi-0000qH-Se for pgsql-bugs@postgresql.org; Thu, 19 Jun 2014 11:30:10 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxaXb-0004O3-Kr for pgsql-bugs@postgresql.org; Thu, 19 Jun 2014 11:30:09 +0000 MIME-Version: 1.0 Subject: BUG #10701: pg_dumpall.exe adds 0x0d to table comments To: pgsql-bugs@postgresql.org From: mundus13@yahoo.de Date: Thu, 19 Jun 2014 11:29:44 +0000 Message-ID: <20140619112944.2620.60755@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.7 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 10701 Logged by: Michael Email address: mundus13@yahoo.de PostgreSQL version: 9.3.4 Operating system: Windows 7 64Bit Description: When pg_dumpall.exe exports a table which contains 0x0d 0x0a in the table comment an additional \x0d is added to the export file. Repro: CREATE TABLE public.test2 ( ... COMMENT ON TABLE public.test2 IS 'desc1 desc2 '; Tablespace Hexdump 0003eb00 8f e0 00 00 eb 04 00 00 00 00 00 00 1f 64 65 73 |.............des| 0003eb10 63 31 0d 0a 64 65 73 63 32 0d 0a 00 00 00 00 00 |c1..desc2.......| pg_dumpall.exe -p 5432 -U postgres > e:\db_export_2014-06-19_V02 Export file hexdump 00010970 20 4f 77 6e 65 72 3a 20 70 6f 73 74 67 72 65 73 | Owner: postgres| 00010980 0d 0a 2d 2d 0d 0a 0d 0a 43 4f 4d 4d 45 4e 54 20 |..--....COMMENT | 00010990 4f 4e 20 54 41 42 4c 45 20 74 65 73 74 32 20 49 |ON TABLE test2 I| 000109a0 53 20 27 64 65 73 63 31 0d 0d 0a 64 65 73 63 32 |S 'desc1...desc2| 000109b0 0d 0d 0a 27 3b 0d 0a 0d 0a 0d 0a 2d 2d 0d 0a 2d |...';......--..-| Version PostgreSQL 9.3.4, compiled by Visual C++ build 1600, 64-bit pg_dumpall (PostgreSQL) 9.3.4 Windows 7 Codepage: 850 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs