xlog.c.patch for cygwin port. - Mailing list pgsql-hackers

From Alexei Zakharov
Subject xlog.c.patch for cygwin port.
Date
Msg-id 003001bf8732$1c3df400$0101010a@magic
Whole thread Raw
Responses Re: [HACKERS] xlog.c.patch for cygwin port.  (yutaka tanida <yutaka@marin.or.jp>)
Re: [HACKERS] xlog.c.patch for cygwin port.  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Hello,
 
I've recently written to pgsql-ports about a problem with PG7.0 on NT (Subj: [PORTS] initdb problem on NT with 7.0).  Since nobody helped me, I had to find out the reson.  The difference between NT and Linux (for instance) is that "open( path, O_RDWR );" opens a file in text mode.  So sometime less block can be read than required.
 
I suggest a following patch.  BTW the situation appeared before, see hba.c, pqcomm.c and others.
 
Attachment

pgsql-hackers by date:

Previous
From: Mike Mascari
Date:
Subject: Re: [HACKERS] DROP TABLE inside a transaction block
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] DROP TABLE inside a transaction block