| From: | Magnus Hagander <magnus(at)hagander(dot)net> |
|---|---|
| To: | pgsql-patches(at)postgresql(dot)org |
| Subject: | Fix for win32 stat() problems |
| Date: | 2008-04-09 17:18:54 |
| Message-ID: | 20080409191854.67cf8bc7@mha-laptop |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
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?
//Magnus
| Attachment | Content-Type | Size |
|---|---|---|
| win32_stat.diff | text/x-patch | 4.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2008-04-09 17:27:57 | Re: Concurrent psql API |
| Previous Message | Tom Lane | 2008-04-09 17:08:15 | Re: [PATCHES] libpq type system 0.9a |