Re: pg_dump -Fd fails to detect ENOSPC

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_dump -Fd fails to detect ENOSPC
Date: 2014-09-17 15:26:23
Message-ID: 20140917152623.GA13240@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Seems to be a simple unchecked return value...I'm testing with this, but won't
endeavor to propose a formal patch.

pg_dump.c
if (copybuf)
{
int ret2;
ret2=WriteData(fout, copybuf, ret);
if (ret!=ret2) {
exit_horribly(NULL, "error writing, (%d %d)\n", ret, ret2);
}

PQfreemem(copybuf);
}

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message alexk 2014-09-17 16:02:16 BUG #11444: autovacuum stuck for 5 days and waits on a lock
Previous Message hmozaffari 2014-09-17 14:41:11 BUG #11442: Long binding time for queries on tables with partitions