Re: [HACKERS] What is the posix_memalign() equivalent for the PostgreSQL?

2016-09-02 Thread Anderson Carniel
:00 Craig Ringer : > On 2 September 2016 at 01:12, Anderson Carniel > wrote: > > 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

[HACKERS] What is the posix_memalign() equivalent for the PostgreSQL?

2016-09-01 Thread Anderson Carniel
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 fu

Re: [HACKERS] Losing memory references - SRF + SPI

2016-05-14 Thread Anderson Carniel
)? Thank you again, Anderson Carniel 2016-05-14 12:19 GMT-03:00 Joe Conway : > On 05/13/2016 09:35 PM, Anderson Carniel wrote: > > I am writing a function that returns a set of tuples by using also the > > PostGIS. Thuis, I am using SRF too. It successfully returns the expected > &g

[HACKERS] Losing memory references - SRF + SPI

2016-05-13 Thread Anderson Carniel
I am writing a function that returns a set of tuples by using also the PostGIS. Thuis, I am using SRF too. It successfully returns the expected result when it has at most 4 tuples. However, this is not the case when more than 4 tuples have to be returned. When I debug the code, I found that the pro