Re: Fix for win32 stat() problems - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: Fix for win32 stat() problems
Date
Msg-id 20080410130853.GE4697@alvh.no-ip.org
Whole thread Raw
In response to Re: Fix for win32 stat() problems  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Fix for win32 stat() problems  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Andrew Dunstan wrote:

> How about #defining safe_stat to be pg_win32_safe_stat on Windows and
> simply stat elsewhere? Then use safe_stat at the places you consider
> critical.

I would couple this with a pgwin32_unsafe_stat on Windows, which changes
the size value to 0, so that if anyone gets it wrong it's immediately
obvious.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-patches by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: Partial match in GIN
Next
From: Magnus Hagander
Date:
Subject: Re: Fix for win32 stat() problems