Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WvFHi-0004Nu-7u for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Jun 2014 00:23:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WvFHh-0003pc-OW for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Jun 2014 00:23:57 +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 1WvFHg-0003pV-Pp for pgsql-bugs@postgresql.org; Fri, 13 Jun 2014 00:23:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WvFHd-00023J-Cq for pgsql-bugs@postgresql.org; Fri, 13 Jun 2014 00:23:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s5D0Nndv028812; Thu, 12 Jun 2014 20:23:49 -0400 From: Tom Lane To: jacek.zalewski@asseco.pl cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10611: pg_restore incorrectly restores DB dump (plain and tar format) containing LARGE OBJECTS witdh commen In-reply-to: <20140611140526.2589.64534@wrigleys.postgresql.org> References: <20140611140526.2589.64534@wrigleys.postgresql.org> Comments: In-reply-to jacek.zalewski@asseco.pl message dated "Wed, 11 Jun 2014 14:05:26 -0000" Date: Thu, 12 Jun 2014 20:23:49 -0400 Message-ID: <28811.1402619029@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 jacek.zalewski@asseco.pl writes: > My database includes many LARGE OBJECTs with COMMENTs set by COMMENT ON > LARGE OBJECT clause. > ... when database includes more than 'unknown' numeber of LARGE OBJECTs > with COMMENTS, I can't restore dump#1 and dump#2 using commands: Thanks for the report. This doesn't happen with pg_dump from 9.0 or later, but I can confirm it's an issue with dumps from 8.4. Although 8.4 is due to reach end-of-life next month, this seems worth fixing because we would like newer pg_restore versions to be able to read dumps from 8.4, and right now they can't if there are too many blob comments. So I've committed a fix. In the meantime, you can dodge the problem if necessary by piping pg_restore's text output into psql, rather than doing a direct-to-database restore. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs