Re: pg_dump return status..

Поиск
Список
Период
Сортировка
От Ian Lance Taylor
Тема Re: pg_dump return status..
Дата
Msg-id sizoh5y6t6.fsf@daffy.airs.com
обсуждение исходный текст
Ответ на RE: [GENERAL] pg_dump return status..  (Matthew <matt@ctlno.com>)
Ответы Re: pg_dump return status..  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
ncm@zembu.com (Nathan Myers) writes:

> An fprintf returning 0 is a suspicious event; it's easy to imagine 
> cases where it makes sense, but I don't think I have ever coded one.
> Probably >N (where N is the smallest reasonable output, defaulting 
> to 1) may be a better test in real code.

On older systems fprintf returns 0 on success and EOF on failure.

> As I recall, on SunOS 4 the printf()s don't return the number of 
> characters written.  I don't recall what they do instead, and have
> no access to such machines any more.

Probably 0/EOF.  sprintf on SunOS returns its first argument.

Ian


В списке pgsql-hackers по дате отправления:

Предыдущее
От: ncm@zembu.com (Nathan Myers)
Дата:
Сообщение: Re: pg_dump return status..
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: bootstrap tables