Re: Windows 9x and PostgreSQL

From: "Henshall, Stuart - WCP" <SHenshall(at)westcountrypublications(dot)co(dot)uk>
To: "'Keith Gray'" <keith(at)heart(dot)com(dot)au>, Cygwin <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: Windows 9x and PostgreSQL
Date: 2001-12-11 09:00:47
Message-ID: E2870D8CE1CCD311BAF50008C71EDE8E01F7474A@MAIL_EXCHANGE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)heart(dot)com(dot)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(at)heart(dot)com(dot)au

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

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

Browse pgsql-cygwin by date

  From Date Subject
Next Message Carsten Piepel 2001-12-11 11:21:52 backend closed the channel unexpectedly
Previous Message Keith Gray 2001-12-10 21:39:48 Windows 9x and PostgreSQL