Re: Windows 9x and PostgreSQL - Mailing list pgsql-cygwin

From Henshall, Stuart - WCP
Subject Re: Windows 9x and PostgreSQL
Date
Msg-id E2870D8CE1CCD311BAF50008C71EDE8E01F7474A@MAIL_EXCHANGE
Whole thread Raw
In response to Windows 9x and PostgreSQL  (Keith Gray <keith@heart.com.au>)
List pgsql-cygwin
Cygwin 1.3.6-6 seems to be working ok for me (bar one or two occurences with
the pg7v2 beta3. Not been able to reproduce however so am not sure what that
was).
If your wanting to use the postgresql 7.2beta3 on cygwin under 9x below is a
patch for postmaster.c
- Stuart
*** postmaster.c.orig    Mon Nov 12 05:43:24 2001
--- postmaster.c    Mon Dec 10 09:16:02 2001
***************
*** 295,301 ****
--- 295,305 ----

      /*
       * Check if the directory has group or world access.  If so, reject.
+      * Windows 9x doesn't have proper file permissions.
+      * Also NT's permissions depend on fs and setting up cygwin
correctly
+      * Therefore turn off for cygwin.
       */
+ #ifndef __CYGWIN__
      if (stat(checkdir, &stat_buf) == -1)
      {
          if (errno == ENOENT)
***************
*** 308,313 ****
--- 312,318 ----
      if (stat_buf.st_mode & (S_IRWXG | S_IRWXO))
          elog(FATAL, "data directory %s has group or world access;
permissions should be u=rwx (0700)",
               checkdir);
+ #endif

      /* Look for PG_VERSION before looking for pg_control */
      ValidatePgVersion(checkdir);


-----Original Message-----
From: Keith Gray [mailto:keith@heart.com.au]
Sent: 10 December 2001 21:40
To: Cygwin
Subject: [CYGWIN] Windows 9x and PostgreSQL


Has anybody found the fix for the
PORT vs FILE error with PostgreSQL
under Cygwin on a W9x Platform?

IPC running, Postmaster starts OK
connections fails.
--
Keith Gray

Technical Development Manager
Heart Consulting Services P/L
mailto:keith@heart.com.au

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

pgsql-cygwin by date:

Previous
From: Keith Gray
Date:
Subject: Windows 9x and PostgreSQL
Next
From: "Carsten Piepel"
Date:
Subject: backend closed the channel unexpectedly