v0.5.1
- Remove -march=native from Makefile and add new Makefile_native to compile using native instructions (#8)
- Fixes memory leak introduced by v0.4.1 which caused by call PG_GETARG_BYTEA_P() in aggctx (#9)
Note:
The default compilation method in v0.5.1 turns off the CPU instruction (AVX) optimization, and in some scenarios may cause a 50% decrease in performance compared to the previous version.
You can use make -f Makefile_native
to return to the previous behavior. But you need to be aware that if you use make -f Makefile_native
to compile on a machine that supports these CPU instructions, and then install the compiled binary on an old machine that does not support these CPU instructions, it may cause postgres crash.