Re: new compiler warnings
| От | Tom Lane |
|---|---|
| Тема | Re: new compiler warnings |
| Дата | |
| Msg-id | 21875.1318969696@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: new compiler warnings ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) |
| Ответы |
Re: new compiler warnings
Re: new compiler warnings |
| Список | pgsql-hackers |
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Would it be too weird to do something like this for each?:
> - write(fileno(stderr), line, len);
> + rc = write(fileno(stderr), line, len);
> + if (rc >= 0 && rc != len)
> + {
> + Assert(false);
> + return;
> + }
I don't think the assert is a good idea. If it ever did happen, that
would promote the problem from "corrupted data in the log" to "database
crash".
regards, tom lane
В списке pgsql-hackers по дате отправления: