From: | Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com> |
---|---|
To: | "'pgsql-patches(at)postgresql(dot)org'" <pgsql-patches(at)postgresql(dot)org> |
Cc: | "'pgsql-hackers-win32(at)postgresql(dot)org'" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | win32 patch: allows source to be compiled + "run" under MingW |
Date: | 2004-01-28 10:45:38 |
Message-ID: | A02DEC4D1073D611BAE8525405FCCE2B55F2A2@harris.memetrics.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers-win32 pgsql-patches |
For application to HEAD, pending community review (rand.c to go in src/port)
Briefly,
* configure + Makefile changes
* shared memory attaching in EXEC_BACKEND case (+ minor fix for apparent
cygwin bug under cygwin/EXEC_BACKEND case only)
* PATH env var separator differences
* missing win32 rand functions added
* placeholder replacements for sync etc under port.h
To those who are really interested, and there are a few of you: the attached
patch + file will allow the source base to be compiled (and, for some
definition, "run") under MingW, with the following caveats (I wanted to
first properly fix all but the last of these, but y'all won't quit asking
for a patch :-):
* child death: SIGCHLD not yet sent, so as a minimum, you'll need to
put in some sort of delay after StartupDatabase, and handle setting
StartupPID to 0 etc (ie. the stuff the reaper() signal function is supposed
to do)
* dirmod.c: comment out the elog calls
* dfmgr.c: some hackage required to substitute_libpath_macro
* slru/xact.c: comment out the errno checking after the readdir
(fixed by next version of MingW)
Again, this is only if you *really* want to see postgres compile and start,
and is a nice leg-up for working on the other Win32 TODO list items. Just
don't expect too much else from it at this point...
Cheers,
Claudio
---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>
Attachment | Content-Type | Size |
---|---|---|
diff8c.out | application/octet-stream | 15.1 KB |
rand.c | application/octet-stream | 2.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Claudio Natoli | 2004-01-28 10:46:43 | Additional items for Win32 TODO list? |
Previous Message | Tom Lane | 2004-01-27 22:57:16 | Re: pg_config.h on interix |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-01-28 15:23:42 | Re: [PATCHES] win32 patch: allows source to be compiled + "run" under MingW |
Previous Message | Steven Singer | 2004-01-28 02:45:18 | contrib/dbmirror |