Re: 0x1A in control file on Windows
| От | Tom Lane |
|---|---|
| Тема | Re: 0x1A in control file on Windows |
| Дата | |
| Msg-id | 16662.1222221406@sss.pgh.pa.us обсуждение |
| Ответ на | Re: 0x1A in control file on Windows (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: 0x1A in control file on Windows
|
| Список | pgsql-hackers |
Bruce Momjian <bruce@momjian.us> writes:
> Tom Lane wrote:
>> Well, why is that a bug? If the platform is so silly as to define text
>> files that way, who are we to argue?
> The problem is that our pg_controldata might have binary values that
> contain 0x1a that will be confused by the operating system as
> end-of-file.
pg_controldata is certainly already being read as binary. The
discussion here is about *text* files, particularly configuration
files. Why should we not adhere to the platform standard about
what a text file is?
If you need a positive reason why this might be a bad idea, consider the
idea that someone is examining postgresql.conf with a text editor that
stops reading at control-Z. He might not be able to see items that the
postmaster is treating as valid.
regards, tom lane
В списке pgsql-hackers по дате отправления: