Closed
Description
Describe the bug
After a lot of investigation we found pg_aligned_alloc
does not use aligned allocations on pg version below 16 causing all sorts of weird errors when bson lib is allocating memory. The bson lib expects aligned memory allocations but the extension overrides the internal allocator with pg specific ones.
Environment
- Operating system and version: All
- PostgreSQL version: 15
- Architecture: All