What is the posix_memalign() equivalent for the PostgreSQL? - Mailing list pgsql-hackers

From Anderson Carniel
Subject What is the posix_memalign() equivalent for the PostgreSQL?
Date
Msg-id CAAAXyN0v400KUhp=eyXybJmZJ+cg_==4f-qzwbXvzkJTWxyhhQ@mail.gmail.com
Whole thread Raw
Responses Re: What is the posix_memalign() equivalent for the PostgreSQL?  (Craig Ringer <craig@2ndquadrant.com>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Remove superuser() checks from pgstattuple
Next
From: Tom Lane
Date:
Subject: Re: System load consideration before spawning parallel workers