Re: Replace open mode with PG_BINARY_R/W/A macros

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Replace open mode with PG_BINARY_R/W/A macros
Дата
Msg-id 4e7545a9-7cba-6be2-0a6e-72a0f531184a@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Replace open mode with PG_BINARY_R/W/A macros  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Replace open mode with PG_BINARY_R/W/A macros  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 20.04.22 22:29, Tom Lane wrote:
> PG_BINARY is useful for open().  It's the PG_BINARY_R/W/A macros for
> fopen() that are redundant per POSIX.  Possibly someone generalized
> inappropriately; or maybe long ago we supported some platform that
> rejected the "b" option?

I think the latter was the case.  I doubt it's still a problem.

I see some of the new code in pg_basebackup uses "wb" directly.  It 
would probably be good to fix that to be consistent one way or the 
other.  I vote for getting rid of the macros.




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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: BufferAlloc: don't take two simultaneous locks
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [RFC] building postgres with meson -v8