Takahiro Itagaki 960930b645 Fixed database corruption when target tables have dropped columns, and
there are views or functions depending on columns after dropped ones.
The issue was reported by depesz, and original patch by Denish Patel.

Improved documentation how to build binaries from source.

COPYRIGHT updated.
2011-04-29 05:06:48 +00:00
..
2010-03-25 07:13:16 +00:00
2011-03-03 01:21:40 +00:00
2010-03-25 07:13:16 +00:00
2010-03-25 07:13:16 +00:00
2010-03-25 07:13:16 +00:00

How to build with Microsoft Visual C++ Express 2005

You might need:
  1. Register PostgreSQL directory to your environment.
  2. Resolve redefinitions of ERROR macro.

----
1. Register PostgreSQL directory to your environment.

The directory configuration options are found in:
  Tool > Option > Projects and Solutions > VC++ directory

You might need to add the following directories:
  into "include files"
    - C:\Program Files\PostgreSQL\8.4\include
    - C:\Program Files\PostgreSQL\8.4\include\internal
    - C:\Program Files\PostgreSQL\8.4\include\server
    - C:\Program Files\PostgreSQL\8.4\include\server\port\win32
    - C:\Program Files\PostgreSQL\8.4\include\server\port\win32_msvc
  into "library files"
    - C:\Program Files\PostgreSQL\8.4\lib

----
2. Resolve redefinitions of ERROR macro.

It might be a bad manner, but I'll recommend to modify your wingdi.h.

--- wingdi.h       2008-01-18 22:17:42.000000000 +0900
+++ wingdi.fixed.h 2010-03-03 09:51:43.015625000 +0900
@@ -101,11 +101,10 @@
 #endif // (_WIN32_WINNT >= _WIN32_WINNT_WINXP)

 /* Region Flags */
-#define ERROR               0
+#define RGN_ERROR           0
 #define NULLREGION          1
 #define SIMPLEREGION        2
 #define COMPLEXREGION       3
-#define RGN_ERROR ERROR

 /* CombineRgn() Styles */
 #define RGN_AND             1