Re: [HACKERS] Re: pg_dump return status..

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Matthew <matt(at)ctlno(dot)com>
Cc: "'Anand Raman'" <araman(at)india-today(dot)com>, postgresql <pgsql-general(at)postgresql(dot)org>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Re: pg_dump return status..
Date: 2001-01-05 13:25:13
Message-ID: 3.0.5.32.20010106002513.0362e2e0@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

At 20:50 4/01/01 -0500, Tom Lane wrote:
>
>Talk to Philip Warner about detecting output write failures. I think
>this might be a lot easier in current sources than it would have been in
>7.0.* or before; the actual I/O is more centralized, and I think you
>could reasonably hope to check for write errors at just a couple of
>places.

There are a few places to check, but a lot less than before. Assuming I
should just die on any failed write (which seems reasonable), how do I
check for a failed write in a way that works on all Unixes? Is the
following OK:

- fwrite: ok if return value equals item count
- fprintf: ok if return value > 0.
- fputc: ok if != EOF

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dave VanAuken 2001-01-05 14:11:13 RE: running pgsql 7 under Jail'ed virtual machine on FreeBSD 4.2
Previous Message Marco Catunda 2001-01-05 11:16:07 Re: Doesn't use index, why?

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave VanAuken 2001-01-05 14:11:13 RE: running pgsql 7 under Jail'ed virtual machine on FreeBSD 4.2
Previous Message Hannu Krosing 2001-01-05 11:01:12 Re: Please review TODO list