Unconference - Stream 2 - 14:30-15:30 - PGCon 2022

Explore the proposal to replace PostgreSQL's build system with Mason, a more efficient and portable alternative to makefiles and PGXS, and learn about the advantages and potential challenges of this change.

Key takeaways
  • The current build system for PostgreSQL is a mix of makefiles and PGXS, which is written in Python, and is not ideal.
  • A proposal suggests replacing the build system with Mason.
  • The idea is that Mason could be used to generate a Maison file from a PGXS makefile, allowing the makfile to be maintained separately.
  • The alternative is that the makefile system could be kept for a few more releases, but eventually Phobos would be the best choice.
  • CMake is not a good option for building PostgreSQL because it is complex and would require a lot of work.
  • Using Mason as the build system could help to improve portability and reduce the need to maintain makefiles indefinitely.
  • A dedicated section in the documentation could be created to help developers learn how to use the new build system.
  • One advantage of Mason is that it can automatically generate a Maison file and then build, which could simplify the process.
  • It was suggested that the translator could be used to generate the Maison file, and that the Maison file could be used to build the extension.