From: Tom Lane <tgl@sss.pgh.pa.us>
To: s.reiser@tu-bs.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7794: pg_dump: errors when using pipes/streams
Date: Sun, 06 Jan 2013 19:25:24 -0500
Message-ID: <9989.1357518324@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TrwXG-0005p0-Vb@wrigleys.postgresql.org>
References: <E1TrwXG-0005p0-Vb@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
s.reiser@tu-bs.de writes:
> pg_dump shows one or more warnings when used with non-seekable streams:
> "pg_dump: [custom archiver] WARNING: ftell mismatch with expected position
> -- ftell used"
> Examples (on Windows 7 Pro 64 Bit, PG 9.1.7 and 9.1.6, 64 Bit)
> 1) pg_dump --format=custom --schema-only mydatabase | zip -0 TEST.ZIP -
Hm. Apparently, pg_dump's checkSeek() function is succeeding even
though later attempts to seek the file don't work. We had a previous
go-round with issues of this sort,
http://archives.postgresql.org/pgsql-hackers/2010-06/msg01355.php
but apparently Windows is "helpful" enough to let a no-op SEEK_SET
call succeed too. (Gee thanks, Microsoft.)
Anyone know how to test for seekability of a file in a way that
works reliably on Windows?
> With all three generated files pg_restore produces exactly the same script,
> so the backup seems ok - but why the warnings then?
My guess is that it's failing to update the table of contents on
completion, which will cause parallel pg_restore to fail, but it's
harmless for ordinary pg_restore. If we fix checkSeek the warnings
would go away, but you'd still have an archive that's not usable
for parallel restores.
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
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, s.reiser@tu-bs.de
Subject: Re: BUG #7794: pg_dump: errors when using pipes/streams
In-Reply-To: <9989.1357518324@sss.pgh.pa.us>
References: <E1TrwXG-0005p0-Vb@wrigleys.postgresql.org> <9989.1357518324@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