Re: 0x1A in control file on Windows

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: 0x1A in control file on Windows
Дата
Msg-id 20080918154713.80E5.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: 0x1A in control file on Windows  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [BUGS] 0x1A in control file on Windows  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> > We probably need to add PG_BINARY when we open control files
> > because 0x1A is an end-of-file marker on Windows.
> 
> Well, why is that a bug?  If the platform is so silly as to define text
> files that way, who are we to argue?

Google says it is for for backward compatibility with CP/M   http://en.wikipedia.org/wiki/End-of-file
and adding O_BINARY is the answer.
http://codenewbie.com/forum/standard-c-c/1208-binary-i-o-file-reading-0x1a-trouble.html

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: optimizing CleanupTempFiles
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: optimizing CleanupTempFiles