| От | Magnus Hagander |
|---|---|
| Тема | Re: Fix for win32 stat() problems |
| Дата | |
| Msg-id | 20080410152337.042157ca@mha-laptop обсуждение исходный текст |
| Ответ на | Fix for win32 stat() problems (Magnus Hagander <magnus@hagander.net>) |
| Ответы |
Re: Fix for win32 stat() problems
Re: Fix for win32 stat() problems |
| Список | pgsql-patches |
Magnus Hagander wrote: > Attached is a patch that attempts to fix the issues with stat() not > properly updating st_size on win32, as reported in this thread: > http://archives.postgresql.org/pgsql-hackers/2008-03/msg01181.php > > It has to have a chance to affect things beyond just the > pg_relation_size() function, so this patch fixes all cases where we do > stat() and use the st_size member. It doesn't change all occurances of > stat() since I didn't want to incur the double filesystem lookups > unnecessary cases. > > Any objections? Updated version. Seems the problem was that the includes came in the wrong order - figured that out just after I went to bed :) Here's an updated patch. A whole lot simpler patch :-) //Magnus
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера