pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
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
Date: Thu, 12 Jun 2014 20:23:49 -0400
Message-ID: <28811.1402619029@sss.pgh.pa.us> (raw)
In-Reply-To: <20140611140526.2589.64534@wrigleys.postgresql.org>
References: <20140611140526.2589.64534@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)

Message-ID: <28811.1402619029@sss.pgh.pa.us>
Permalink:  ../28811.1402619029@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28811.1402619029@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jacek.zalewski@asseco.pl
  Subject: Re: BUG #10611: pg_restore incorrectly restores DB dump (plain and tar format) containing LARGE OBJECTS witdh commen
  In-Reply-To: <28811.1402619029@sss.pgh.pa.us>
  References: <20140611140526.2589.64534@wrigleys.postgresql.org> <28811.1402619029@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox