What is the posix_memalign() equivalent for the PostgreSQL?

Поиск
Список
Период
Сортировка
От Anderson Carniel
Тема What is the posix_memalign() equivalent for the PostgreSQL?
Дата
Msg-id CAAAXyN0v400KUhp=eyXybJmZJ+cg_==4f-qzwbXvzkJTWxyhhQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: What is the posix_memalign() equivalent for the PostgreSQL?  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
Dear all,

I am developing an extension for the PostgreSQL that write/read some external files from the PostgreSQL. In order to write/read, I am using the O_DIRECT flag and using the posix_memalign to allocate memory. I would like to know if the postgresql internal library provides an equivalent function for the posix_memalign since I am getting unexpected errors. All my allocations are in the TopMemoryContext since I am working with several buffers that must be alive while the PostgreSQL Server is activated.

Thanks in advance,
Anderson

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Remove superuser() checks from pgstattuple
Следующее
От: Tom Lane
Дата:
Сообщение: Re: System load consideration before spawning parallel workers