Re: pg_dump -Fd fails to detect ENOSPC - Mailing list pgsql-bugs

From Justin Pryzby
Subject Re: pg_dump -Fd fails to detect ENOSPC
Date
Msg-id 20140917152623.GA13240@telsasoft.com
Whole thread Raw
In response to pg_dump -Fd fails to detect ENOSPC  (Justin Pryzby <pryzby@telsasoft.com>)
List 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);
}

pgsql-bugs by date:

Previous
From: galery@transfacil.com.br
Date:
Subject: BUG #11438: postgresql compiled with gcc/c
Next
From: alexk@hintbits.com
Date:
Subject: BUG #11444: autovacuum stuck for 5 days and waits on a lock