| От | Tom Lane |
|---|---|
| Тема | Re: Use of PG_BINARY_R and "r" |
| Дата | |
| Msg-id | 2919.1016823859@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Use of PG_BINARY_R and "r" (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: Use of PG_BINARY_R and "r"
|
| Список | pgsql-hackers |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> My assumption is that text files should use "r" and binary files use
> PG_BINARY_R.
I believe that's correct. It seems kinda inconsistent though.
> For example, in 7.2 I see pg_hba.conf opened with "r" and pg_ident.conf
> opened with PG_BINARY_R.
The latter is clearly wrong, since pg_ident.conf is not binary.
Is there any interest in defining#define PG_TEXT_R "r"#define PG_TEXT_W "w"
so that AllocateFile is always called with one of this set of macros?
Or is that just silly?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера