Re: libpq debug log
| От | Tom Lane |
|---|---|
| Тема | Re: libpq debug log |
| Дата | |
| Msg-id | 3458958.1617302154@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: libpq debug log (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: libpq debug log
|
| Список | pgsql-hackers |
So drongo is still failing, and after a bit of looking around at
other code I finally got hit with the clue hammer. Per port.h:
* On Windows, setvbuf() does not support _IOLBF mode, and interprets that
* as _IOFBF. To add insult to injury, setvbuf(file, NULL, _IOFBF, 0)
* crashes outright if "parameter validation" is enabled. Therefore, in
* places where we'd like to select line-buffered mode, we fall back to
* unbuffered mode instead on Windows. Always use PG_IOLBF not _IOLBF
* directly in order to implement this behavior.
You want to do the honors? And do something about that shift bug
while at it.
regards, tom lane
В списке pgsql-hackers по дате отправления: