From: Justin Pryzby <pryzby@telsasoft.com>
To: pgsql-bugs@postgresql.org
Subject: pg_dump -Fd fails to detect ENOSPC
Date: Tue, 16 Sep 2014 11:57:15 -0500
Message-ID: <20140916165715.GA4560@telsasoft.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
pg_dump -Fc works correctly, but -Fd does not detect out of disk space
condition (even if --jobs is not specified). Client and server version 9.3.5.
sudo lvcreate -L 1M -n full data
sudo mkfs.ext3 -j -m0 /dev/data/full
sudo mkdir /srv/full
sudo mount /dev/data/full /srv/full
sudo chown postgres: /srv/full
sudo -u postgres strace -xs3 pg_dump -t 'a*' ts -Fd -f /srv/full/x
[...]
write(4, "\x64\x63\x81"..., 1024) = 1024
write(4, "\x40\x58\xd7"..., 15360) = 7168
write(4, "\x8f\x71\xad"..., 8192) = -1 ENOSPC (No space left on device)
write(4, "\x35\x33\xe7"..., 1024) = 1024
write(4, "\xd7\xe4\x0e"..., 15360) = -1 ENOSPC (No space left on device)
write(4, "\x35\x33\xe7"..., 1024) = -1 ENOSPC (No space left on device)
write(4, "\x35\x33\xe7"..., 1024) = -1 ENOSPC (No space left on device)
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "YST"..., 24430, 0, NULL, NULL) = 24430
write(4, "\x35\x33\xe7"..., 1024) = -1 ENOSPC (No space left on device)
write(4, "\x35\x33\xe7"..., 1024) = -1 ENOSPC (No space left on device)
write(4, "\x35\x33\xe7"..., 1024) = -1 ENOSPC (No space left on device)
[...]
--
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: pryzby@telsasoft.com
Subject: Re: pg_dump -Fd fails to detect ENOSPC
In-Reply-To: <20140916165715.GA4560@telsasoft.com>
References: <20140916165715.GA4560@telsasoft.com>
* 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