OSDN Git Service

I've recently written to pgsql-ports about a problem with PG7.0 on NT
authorBruce Momjian <bruce@momjian.us>
Tue, 7 Mar 2000 23:49:31 +0000 (23:49 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 7 Mar 2000 23:49:31 +0000 (23:49 +0000)
commit8fa8f80c1a5db7f21730c3f4bf336de2cd894d22
tree74a977ea3f061ea0b70399f8e1bcaeb2579ed778
parent9606f36210542ebc2dd6b040830f3c6c5859a4a6
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.

Alexei Zakharov
src/backend/access/transam/xlog.c