Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ts0Wz-0001y9-Cr for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Jan 2013 00:25:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ts0Ww-00050y-Uu for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Jan 2013 00:25:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ts0Ww-00050s-68 for pgsql-bugs@postgresql.org; Mon, 07 Jan 2013 00:25:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ts0Wr-0002qX-F3 for pgsql-bugs@postgresql.org; Mon, 07 Jan 2013 00:25:29 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r070PORo009990; Sun, 6 Jan 2013 19:25:24 -0500 (EST) From: Tom Lane To: s.reiser@tu-bs.de cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7794: pg_dump: errors when using pipes/streams In-reply-to: References: Comments: In-reply-to s.reiser@tu-bs.de message dated "Sun, 06 Jan 2013 20:09:34 +0000" Date: Sun, 06 Jan 2013 19:25:24 -0500 Message-ID: <9989.1357518324@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 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